Questions tagged [nuget-package]

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio.

NuGet is a free open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development. NuGet is a member of the ASP.NET Gallery in the Outercurve Foundation.

Get started on nuget.org and find documentation on docs.nuget.org

To see NuGet in action, watch this video from MvcConf 2 and this one from DevDays 2011 Netherlands.

3630 questions
33
votes
2 answers

NuSpec version attribute vs assembly version

When creating a nuget package, the version in the file name of the nuget package seems to come from the AssemblyInfo file in the web application project. I have also created a version attribute inside the nuspec file. What is the relationship…
BjartN
  • 5,327
  • 6
  • 28
  • 32
32
votes
3 answers

How do you list ALL packages in Nuget

Is there a way to list all packages available through the NuGet command line interface. When I use the following command: Get-Package -Remote In the package manager console, it only lists the first 100 packages. Thank you Eric
Eric Ziko
  • 585
  • 1
  • 5
  • 8
32
votes
6 answers

Download Nuget Packages Without VS/NuGet Package Manager

How can I download NuGet Packages outside of visual studio? so it can be used to create offline packages.
Aviran Cohen
  • 5,581
  • 4
  • 48
  • 75
31
votes
4 answers

Error NU5012 - nuget pack unable to find path (/bin/release/MyProject/bin/release)

I'm trying to update my nuget package by running the command nuget pack -properties Configuration=Release but this gives me the following error: Unable to find 'bin/Release/{project-name}/bin/Release'. Mae sure the project has been built I'm not…
Detilium
  • 2,868
  • 9
  • 30
  • 65
30
votes
5 answers

Nuget Package ... does not exist in project ... Package ... Already exists in folder

I've been fighting with this error for several hours and can't come up with a solution that works. I have an ASP.Net API within a multi-project solution which has its references/dependencies improperly configured and I've been trying to fix it for…
Ranger
  • 1,139
  • 1
  • 13
  • 34
30
votes
3 answers

References from class library are not copied to running project bin folder

I have a class library that represents my logic layer. To that library I've added a nuget package for Google.Apis.Analytics.v3 - it installed the package and all it's dependencies. I have a console application that uses that logic class library…
developer82
  • 13,237
  • 21
  • 88
  • 153
29
votes
5 answers

NuGet package shows yellow exclamation mark

I just installed a package through NuGet, but it shows a yellow exclamation mark icon in my Solution Explorer, see screenshot below. Why does this happen, and how can I resolve it?
user7127000
  • 3,143
  • 6
  • 24
  • 41
28
votes
4 answers

JSON.NET How To Reference?

I just installed the Json.Net package and now I am wondering how I can import this to my project? I first tried "using Newtonsoft.Json;" but that's not coming up. I tried looking for it by adding a reference to my project first but I can't find it…
Shane LeBlanc
  • 2,633
  • 13
  • 42
  • 74
28
votes
10 answers

Nuget package generation Exclude lib folder

I am trying to generate nuget package with .nuspec file. We have several projects under one roof and trying to create nLog.config (And transform files) and distribute it via nuget package. For any version of .Net Framework I am looking for same set…
TorontoKid
  • 733
  • 1
  • 7
  • 15
27
votes
3 answers

what is major difference between dotnet publish and dotnet pack

What is the major difference between dotnet pack and publish? From Microsoft's description, my understanding is that pack creates a package while publish creates package + DLL. Is this correct? If so, why not just always use publish and not use the…
Lost
  • 12,007
  • 32
  • 121
  • 193
27
votes
7 answers

NuGet not restoring packages on build

I have just created a workspace on a new machine, got latest of our project from TFS, enabled NuGet Restore, and I get the following (skimmed-down) output: 1>------ Rebuild All started: Project: Caching, Configuration: Debug Any CPU ------ 1> …
Dave New
  • 38,496
  • 59
  • 215
  • 394
27
votes
11 answers

NuGet Package manager stuck on "Retrieving information..." on VS 2013

Using VS 2013 with NuGet Package Manager installed, I can view all Installed packages, but when I pick Updates or Online, I get an endless busy indicator showing "Retrieving information..." I've verified I have a good connection. I…
Douglas
  • 3,093
  • 4
  • 22
  • 22
27
votes
2 answers

Visual Studio : NuGet Package Source requires credentials

Visual Studio 2012 > Tools > Options > Package Manager > Package Sources I add a new Package Source pointing to a myget.org url : http://www.myget.org/F/myfeed/ VS > Tools > Library Package Manager > Manage NuGet Packages for Solution... I am now…
BaltoStar
  • 8,165
  • 17
  • 59
  • 91
26
votes
2 answers

Team Foundation Server 2010 and NuGet package folder

I've been using the NuGet Package Manager in Visual Studio 2010 to add third party dependencies to our projects such as NUnit, Elmah etc. By default these are installed to the packages folder at the same level as the sln file. Is there anyway of…
Darren Lewis
  • 8,338
  • 3
  • 35
  • 55
26
votes
5 answers

What is the reverse for Update-Database (used in Package Manager Console)?

I have been changing my domain classes and executed Update-Database in the Package Manager Console, After i realized that need to add an index and need to down-grade to the previous state. what is the proper command to down-grade one step in…
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95