Questions tagged [nuget]

NuGet is a free, open source developer focused package management system for the .NET platform.

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.

10235 questions
912
votes
7 answers

Download old version of package with NuGet

Is there a way to download a previous version of a package with NuGet, not the latest one?
ryudice
  • 33,818
  • 31
  • 103
  • 154
718
votes
17 answers

How do I get NuGet to install/update all the packages in the packages.config?

I have a solution with multiple projects in it. Most of the third party references are missing, yet there are packages.config file for each project. How do I get NuGet to install/update all the packages needed? Does this need to be done via command…
Samuel Goldenbaum
  • 15,346
  • 13
  • 51
  • 87
508
votes
10 answers

How do I install a NuGet package .nupkg file locally?

I have some .nupkg files from a C# book. How can I install them?
Tom
  • 14,222
  • 12
  • 61
  • 105
447
votes
10 answers

How can I clear the NuGet package cache using the command line?

I can clear my development computer's NuGet package cache using Visual Studio menu Tools → Options → NuGet Package Manager → General: Clear Package Cache button. I would like to do this on the command line. Unfortunately, I can not find a related…
g.pickardou
  • 24,276
  • 25
  • 91
  • 195
389
votes
5 answers

How can I install an older version of a package via NuGet?

I want to install an older version of a package (Newtonsoft.Json). But NuGet rolls back: PM> Install-Package Newtonsoft.Json -Version 4.0.5 Successfully installed 'Newtonsoft.Json 4.0.5'. Install failed. Rolling back... Install-Package : Already…
Nebide Yildiz
  • 3,911
  • 2
  • 13
  • 12
366
votes
32 answers

Assets file project.assets.json not found. Run a NuGet package restore

I'm trying to use nopCommerce(Which is written in .NET Core) but when I want to run the project I face 52 Errors telling me Run a nuget package restore Assets file ~\obj\project.assets.json' not found. Run a NuGet package restore to generate this…
NeverTrust
  • 3,905
  • 2
  • 9
  • 14
355
votes
20 answers

This project references NuGet package(s) that are missing on this computer

I have an ASP.NET MVC5 application that worked yesterday and now I am getting this error when I try to build: This project references NuGet package(s) that are missing on this computer. I have the two options checked that allow nuget to…
Austin Harris
  • 4,462
  • 6
  • 23
  • 35
341
votes
12 answers

Get TFS to ignore my packages folder

I'm trying to get TFS (2013) to ignore my packages folder. I passionately don't want it source controlled as I'm using NuGet and it's great! I've tried cloaking (doesn't seem to work), I've tried adding .tfignore files - nothing is ignored. Why…
Matt
  • 5,283
  • 4
  • 29
  • 37
313
votes
36 answers

NuGet Packages are missing

I searched this problem but none of the solutions worked. I have Visual Studio Professional 2015 installed and I am using TFS. My NuGet version is 3.1.6. This problem is happening only in my C# Web API/MVC project. I am getting the below…
Ques Tion
  • 3,125
  • 2
  • 8
  • 10
298
votes
16 answers

Is it possible to change the location of packages for NuGet?

I have the following convention for most of my projects: /src /Solution.sln /SolutionFolder /Project1 /Project2 /etc.. /lib /Moq moq.dll license.txt /Yui-Compressor …
TheCloudlessSky
  • 17,698
  • 13
  • 68
  • 113
293
votes
2 answers

Getting "project" nuget configuration is invalid error

I'm getting "[project] nuget configuration is invalid" error. I received an error like this before and used the 'Update Nuget package manager' solution mentioned here: Unable to Install Any Package in Visual Studio 2015 I've also tried the other…
Ash
  • 5,441
  • 5
  • 15
  • 36
286
votes
24 answers

How do I enable NuGet Package Restore in Visual Studio?

There's a similar post on stack but it doesn't help with my issue possibly because I am using Visual Studio 2015. How do I get the "Enable NuGet Package Restore" option to appear in VS2015? I chose File > New Project and created an empty ASP.NET Web…
Dan Beaulieu
  • 17,926
  • 15
  • 92
  • 126
272
votes
35 answers

System.MissingMethodException: Method not found?

What once was working in my asp.net webforms app now throws this error: System.MissingMethodException: Method not found The DoThis method is on the same class and it should work. I have a generic handler as such: public class MyHandler:…
user603007
  • 10,558
  • 35
  • 99
  • 164
211
votes
5 answers

Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?

I have migrated a solution that is currently targeting .NET 4.0 in VS2010 to VS2012 and now I would like to re-target it to .Net 4.5 What I am not sure about is the NuGet packages. For example EF5, which I updated from EF4 in VS2010 turns out to be…
Ivan Zlatev
  • 11,978
  • 8
  • 38
  • 48
196
votes
7 answers

How do I install a NuGet package into the second project in a solution?

I'm currently working on a solution that initially contained one project (My.First.Project.Name). I've installed Castle Windsor by executing: Install-Package Castle.Windsor I've just added another project (My.Second.Project.Name) to the solution…
Rob
  • 43,549
  • 23
  • 115
  • 144
1
2 3
99 100