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
20
votes
3 answers

How to create a nuget package with both release and debug dll's using nuget package explorer?

I'm using the Nuget Package Explorer to create some nuget packages. I've managed to do so just building a project in Release mode in VS and adding both the dll and pdb files to the package. So far so good, but when I add the package to another…
Prowling Duck
  • 417
  • 1
  • 6
  • 14
20
votes
0 answers

Rollback to old Nuget package manager in VS2015

Is there any way I can rollback to old Nuget Package Manager (the one which comes with VS2013) for VS 2015, Nuget Package Manager with VS2015 is slow and doesn't even support simple things like update all and if you look at the reviews provided it…
ndd
  • 3,051
  • 4
  • 25
  • 40
20
votes
1 answer

Manage NuGet Packages revert jquery to old version

I have updated the jquery version 2.0 but i found that this is not compatible with ie7 and 8 now i want to revert to old version 1.9.0. When i try to install this with Nuget console it gives me error that already new version is…
Altaf Sami
  • 846
  • 5
  • 10
  • 21
20
votes
2 answers

nexus or artifactory with nuget?

I am trying to introduce decent reference management to my organisation. Having used Nexus with Maven before, I know it to be far superior to the method of building everything locally. As this is a .Net shop I want to use NuGet instead of Maven. I…
Aidan
  • 4,783
  • 5
  • 34
  • 58
20
votes
3 answers

Multi-framework NuGet build with symbols for internal dependency management

Maybe I'm pushing the envelope here, but I'm desperate to leverage NuGet to ease the DLL Hell that I've found myself in. We have 4 main products that all live in interrelated Mercurial repositories. All of them "share" 3 core assemblies and then…
David Boike
  • 18,545
  • 7
  • 59
  • 94
19
votes
6 answers

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies

I have searched google for this and could not find the solution to the problem. My Website references DAL (custom dll) which references Enterprise Library Data Access Components. I have added the Enterprise Library from the NuGet Package Manager and…
Naveed Butt
  • 2,861
  • 6
  • 32
  • 55
19
votes
2 answers

Pack multiple assemblies with dotnet pack

Just as the question says really, how can I pack multiple projects / assemblies using dotnet pack? Using VS2017 with new csproj files.
Matt Whetton
  • 6,616
  • 5
  • 36
  • 57
19
votes
2 answers

package.config update does not update the references

I have multiple projects referencing the same NuGet Package. When I got latest code, I realized that one of the projects had an updated package.config and also updated reference to the Dll that is provided by that package. Now, I also updated…
Lost
  • 12,007
  • 32
  • 121
  • 193
19
votes
2 answers

Add configuration to appsettings.json with nuget package

I have created a nuget package where I am in need of adding a section to appsettings.json, or add my own configuration file that is copied into the application, but I am unable to figure out how. I want this: { "mysection" : { …
ruffen
  • 1,695
  • 2
  • 25
  • 51
19
votes
4 answers

Guarantee same version of nuget packages

We have a framework that is split up into lots of separate projects in one solution. I now want to create NuGet packages for each separate project, but guarantee that only one version of the framework can be used in one solution (possibly across…
Voo
  • 29,040
  • 11
  • 82
  • 156
19
votes
2 answers

How to quickly make a fix in NuGet package hosted on GitHub?

I am using a NuGet package whose source code is on GitHub. I need to make a change in the source code and I know how to do it, however, I'm not sure how to make this change available to my project immediately. I guess the standard process is…
Borek Bernard
  • 50,745
  • 59
  • 165
  • 240
19
votes
2 answers

Could not load file or assembly 'System.Web.Http, Version=5.0.0.0

After installing Microsoft.Aspnet.Webapi.Webhost package to my web api project, I end up with the following exception: Could not load file or assembly 'System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of…
Hamid
  • 962
  • 3
  • 9
  • 21
19
votes
4 answers

NuGet's Restore Package insists on specific package versions

I've a project with the following packages.config:
Ilya Ayzenshtok
  • 721
  • 2
  • 7
  • 18
18
votes
4 answers

Nuget: Change package directory path and name

Is it possible to change the name and the path of the created nuget package directory? My current folder structure is like this: +src ++Project1 ++Project2 ++packages I'd like to have a folder structure like this: +Lib…
Rookian
  • 19,841
  • 28
  • 110
  • 180
18
votes
2 answers

Unable to find package . No packages exist with this id in source. .NET core

I am trying to use a project as nuget package in other solution. The project i want to use has 2 references to other projects in the solution he is at. I am creating the .nupkg file using the cli command dotnet pack in the path of the project i…
ATT
  • 921
  • 3
  • 13
  • 30