NuGet is the package and dependency manager for the Microsoft development platform including .NET.
Questions tagged [nuget]
48 questions
43
votes
4 answers
Get license information for all used NuGet packages
To keep our house in order, I want to automatically assemble licenses for project dependencies in our documentation, rather than having to add them manually.
Does anybody know a simple way to traverse programmatically a set of CSPROJ files and…

Byron Ross
- 627
- 1
- 5
- 8
26
votes
3 answers
Managing in-house NuGet packages with source code access
We have a lot of in-house libraries that we would like to share between projects inside the company. These are some of the requirements:
library sources are stored in repositories separated from end-projects
end-projects include libraries via…

Dyppl
- 421
- 4
- 7
9
votes
4 answers
When to create a nuget package vs creating a web api
As our devs are writing internal applications, often times we need to share code. There are various ways to do this, but it usually comes down to creating a nuget package on a shared server or hosting a web api internally. We don't have a definitive…

goku_da_master
- 201
- 2
- 6
8
votes
2 answers
Policies on NuGet dependencies versions when developing a library
I'm building a C# library and have some dependencies through NuGet packages. I'm trying to minimise entry barrier and using the very early versions of dependency packages. For example I use Newtonsoft.Json of v6.0.1, but current version is v9x.…

trailmax
- 183
- 1
- 6
6
votes
2 answers
One project per solution to create nuget packages
I have a solution with 10 projects, I used to distribute this as an SDK with an installer back in the day.
To change that in VSTS I added the steps to create a package per project, every time I make a change, a build is triggered and a PS script…

Juan Zamudio
- 169
- 4
5
votes
3 answers
Single massive solution - good idea?
I am analysing a Windows Forms application in .NET Framework 4.5.2 with 4 separate solutions with a combined 1.5million lines of code (and 10 years of development)
Libraries.sln (54 projects)
Tools.sln (18 projects with many depending on 28…

Dave Mateer
- 423
- 2
- 8
5
votes
2 answers
Should a solution containing projects exposed as nuget reference them as package?
Scaling down for the sake of the example, my project is structured like this:
solution X
project A
project B
Project A is exposed as nuget packages externally, project B need the functionality provided by project A.
Those projects are…

Giulio Caccin
- 169
- 7
5
votes
2 answers
Best practices for developing NuGet package alongside consumer?
I'm writing a NuGet package mainly for data access and utility functions that is going to be consumed by multiple web applications, but there will be one main web application that is going to drive the development of the NuGet package. As such I'm…

Jez
- 1,308
- 2
- 10
- 19
5
votes
1 answer
How to version NuGet packages in CI world
I am trying to implement CI for one of my projects that generates a NuGet package which is published to our private NuGet repository. Obviously, for dependent applications to see the new packages as upgrades, they must have higher version numbers. …

SonOfPirate
- 2,885
- 4
- 25
- 28
4
votes
1 answer
Alternative for C# Library distribution within an Organisation
I am looking for advice on how to manage shared code between several projects more effectively.
Currently, we have several applications that use the same common backbone of infrastructure code, from simple utilities to wrappers around larger…

Gregory William Bryant
- 143
- 4
4
votes
0 answers
How to manage multiple NuGet packages in GitHub and Artifactory?
My colleagues and I are in the process of re-architecting our system. The old system is a ASP.NET monolith using TFS for source control. The new system is made up of ASP.NET Core microservices using GitHub for source control and a private NuGet…

Raymond Saltrelli
- 1,344
- 2
- 12
- 16
4
votes
1 answer
NuGet on VSTS strategy
I have the following scenario:
We want to create nuget packages on VSTS
We want the packages to be available for an external party (preferably no login, tokens...?)
For our developers we want to have the symbols for that package coming from…

grmbl
- 149
- 5
4
votes
1 answer
Is NuGet vulnerable to this typosquatting attack?
A recently-published article demonstrates a way to make "typo-squatting" attacks on popular programming package managers. It singles out Python's pip, Ruby's gem and Node's npm systems, and shows that they have two things in common:
Packages can…

Mason Wheeler
- 82,151
- 24
- 234
- 309
4
votes
1 answer
Starting to use TFS - handling internal dependant libraries - local nuget?
Approach
I'm trying to get up and running with TFS 2013. This is my priority order for implementing it.
Start using it for existing Git Repo projects.
Then get automated builds working from check ins (CI?)
Start to use for Work Items and backlog…

David C
- 273
- 3
- 9
3
votes
1 answer
Avoid or minimize merge conflicts while using NuGet and GitFlow
Here's our problem - we have several solutions with multiple projects using our own nuget packages. We're following GitFlow, but not SemVer. Every time we're developing bigger feature or epic we want to keep it's code up to date with our development…

JayL
- 33
- 3