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

Visual Studio 2012 Package Manager Console error

When trying to install anything with the Package Manager Console, I get this error: Install-Package : The schema version of 'Microsoft.Bcl' is incompatible with version 2.0.30625.9003 of NuGet. Please upgrade NuGet to the latest version from…
user3272686
  • 853
  • 2
  • 11
  • 23
23
votes
5 answers

NuGet package files not being copied to project content during build

I am building an MVC4 web application with VS2012 professional with NuGet Package Manager version 2.2.31210. I have multiple projects in my solution, all sharing various packages I installed using NuGet. One of my projects is an MVC4 web…
AngCaruso
  • 570
  • 1
  • 4
  • 11
23
votes
3 answers

Hosting your own NuGet and Symbol Source server?

I know that we can host our own private / internal NuGet server, but is there a way to also hosting your own Symbol Source server that links to your private NuGet packages? My company's policy doesn't allow publishing source code, even to…
Saxman
  • 5,009
  • 11
  • 51
  • 72
22
votes
5 answers

Create nuget package for a solution with multiple projects

We are currently building a solution with several projects. We have something like this: - Common - Logging - Logging.NLog - Threading So Logging.NLog is dependant on Logging, Logging on Common...etc. When we pack Logging.NLog I would like…
Charles Ouellet
  • 6,338
  • 3
  • 41
  • 57
22
votes
1 answer

Should '*.deps.json' file be distributed along with the assembly or inside nuget packages?

Should *.deps.json files be distributed along with the assembly or inside the nuget packages?
Pawel Lesnikowski
  • 6,264
  • 4
  • 38
  • 42
22
votes
2 answers

How to make the Nuget restore work faster?

We are building CD pipeline using VSTS hosted build servers. It takes more than 3 minutes to restore Nuget. This is too much time. How can I make it run faster? Is there any sort of caching system we can use?
22
votes
3 answers

Automatic Package Restore: Unable to find version of package

We are using the improved Automatic Package Restore process to restore missing NuGet packages. When building, the Restore dialog pops up as it starts to download from the package sources, which is correct: I can see that the packages are being…
21
votes
3 answers

How to use github nuget packages on Visual Studio 2019

I try to learn Github action and packages. So, I create a sample nuget package and successfully created. However I could not use it. I follow this step; Options > Nuget Package Manager > Package Sources Click add button write organization name and…
21
votes
2 answers

nuget package reference blue icon in visual studio 2017

For some reason in my console app, couple of the reference that I installed thru nuget shows the blue nuget icon. I can build my project locally, but not after I deploy my project to cloud. The error msg is complaining about not able to find these 2…
checai
  • 836
  • 4
  • 11
  • 17
21
votes
4 answers

overwrite nuget packages in feed on visual studio team services

while using nuget.exe push \\share\Packages\*.nupkg -Source "https://myvsts.pkgs.visualstudio.com/_packaging/tcpcm/nuget/v3/index.json" -ApiKey VSTS i got an Response status code does not indicate success: 409 (Conflict). error is there a way to…
user5955036
21
votes
3 answers

How to use a NuGet package within a PowerShell script?

I'm writing a PowerShell script that makes use of the Mono.Cecil library. How would I install the package so I can use it from within the script? Thanks! (For the record, I did try Googling before asking this, but all that came up was results about…
James Ko
  • 32,215
  • 30
  • 128
  • 239
21
votes
2 answers

How to package a portable .NET library targeting .NET Core?

How do I package a portable .NET library in a modern general-purpose way? Let's assume I have a single AnyCPU assembly that I wish to make available to any .NET platform that supports the .NET Core API surface, for example .NET Framework 4.6 and the…
Sander
  • 25,685
  • 3
  • 53
  • 85
21
votes
3 answers

NuGet pack is ignoring assembly info

When I run nuget pack MyProject.csproj from the command line, I get the following error: The replacement token 'author' has no value. I checked my AssemblyInfo, and the AssemblyCompany is specified as "AJ Richardson". I tried manually replacing…
AJ Richardson
  • 6,610
  • 1
  • 49
  • 59
21
votes
6 answers

how to get all nuget dependencies for offline installation

I use two computers, one with internet connection and the other one without. I want to install a Nuget package (Nuget.server) with all its dependencies on the offline computer. Unfortunately it is not possible just to download the package itself and…
Colleen MacRay
  • 213
  • 1
  • 2
  • 4
21
votes
9 answers

NuGet Package Restore Not Working on Build Server

I have set up NuGet Package Restore on my solution and it works nicely on my local machine. I followed the instructions supplied here: http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages The problem I have is on my build…
amateur
  • 43,371
  • 65
  • 192
  • 320