1,572 questions
21
votes
2
answers
43k
views
MSI vs nuget packages: which are is better for continuous delivery?
Let's discuss following topic. There is application which currently is being deployed with good to know xcopy method.This approach makes difficult to manage dependencies, file updates etc. There is ...
333
votes
19
answers
317k
views
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....
644
votes
11
answers
1.1m
views
How do I install a NuGet package .nupkg file locally to Visual Studio?
I have some .nupkg files from a C# book that I would like to install to Visual Studio. How can I install them?
Here is what I see in the Add Library Package Reference window showing no packages, with ...
49
votes
2
answers
110k
views
How to install JSON.NET using NuGet?
I am trying to download JSON.NET from NuGet.
Is it available? What's the correct command?
138
votes
17
answers
239k
views
NuGet behind a proxy
I figure out that NuGet allows proxy settings configuration since 1.4 version (June 2011). But, I can't find any command line example.
I'm trying to run some build and NuGet can't connect.
How do I ...
808
votes
18
answers
857k
views
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 ...
112
votes
3
answers
151k
views
Create nuget package from dlls
I want to create a NuGet package which adds multiple .dll files as references to my project.
I have a folder with 10 .dlls files in it.
When I install this via nuget, I want these files to be added ...
451
votes
26
answers
364k
views
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 ...
154
votes
14
answers
115k
views
Setting up a common nuget packages folder for all solutions when some projects are included in multiple solutions
I have been using NuGet to retrieve packages from external and internal package sources, which is very convenient. But I have realized that the packages are by default stored per solution, which is ...
611
votes
47
answers
497k
views
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 ...
928
votes
8
answers
251k
views
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?
411
votes
5
answers
266k
views
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 ...
20
votes
4
answers
25k
views
How can I set the 'copy to output directory' property in my nuspec file?
Please consider the following nuspec file:
<?xml version="1.0"?>
<package >
[SOME METADATA]
<files>
<file src="bin\x64\$configuration$\GR*.filetype" target="content\" /&...
356
votes
12
answers
109k
views
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 ...
344
votes
37
answers
384k
views
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 ...
94
votes
8
answers
115k
views
Add a package with a local package file in 'dotnet'
Using the dotnet command line tool, how can I add a reference to an existing local package that is not downloaded with NuGet?
I have tried adding a local package to a project bar with dotnet:
dotnet ...
224
votes
5
answers
78k
views
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, ...
149
votes
15
answers
91k
views
How to view a NuGet package's dependency hierarchy
How can I view the hierarchy of dependencies between NuGet packages (either textual or graphically)?
93
votes
11
answers
128k
views
How can I fix assembly version conflicts with JSON.NET after updating NuGet package references in a new ASP.NET MVC 5 project?
I created a new ASP.NET MVC 5 web project in VS 2013 (Update 1) then updated all NuGet packages. When I build the project, I get the following warning:
warning MSB3243: No way to resolve conflict ...
78
votes
10
answers
74k
views
NuGet Package Manager: 'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'
I'm trying to add AutoMapper as a dependency to a project using NuGet on Visual Studio Premium 2012, but it fails.
It says:
Operation failed
'AutoMapper' already has a dependency defined for
'...
59
votes
4
answers
12k
views
Why does my .NET Standard NuGet package trigger so many dependencies?
I've been mucking about with a .NET Standard project and NuGet. I've got a working project and have uploaded it to NuGet.org. My project targets .NET Standard 1.3, which should support .NET Framework ...
40
votes
6
answers
38k
views
Include all dependencies using dotnet pack
Is there any way to force dotnet pack to include all referenced assemblies (all dependencies in project.json)?
I believe this is related:
https://github.com/dotnet/cli/issues/1290
https://github.com/...
28
votes
5
answers
78k
views
Unable to load the service index for source https://api.nuget.org/v3/index.json in VS2017?
I am getting this error:
[nuget.org] Unable to load the service index for source
https://api.nuget.org/v3/index.json. An error occurred while sending
the request. Unable to connect to the remote ...
25
votes
4
answers
17k
views
Project reference VS NuGet
How should I reference to another project A from project B in the same solution?
What do I gain and what do I lose if I:
Add the reference to project A as a project reference.
Install the NuGet ...
1
vote
1
answer
3k
views
Include ONLY .xml file of SPECIFIC nuget package in a different folder
We have a project (ProjectAbc) in a solution which is referencing a nuget package (which is our different project [ProjectXyz] from other solution). We use .net core framework and package reference to ...