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
16
votes
0 answers

Publish unlisted NuGet package

I want to publish a new version of a NuGet package, but I want it automatically in an Unlisted status. When I manually upload the .nupkg file to nuget.org, in the preview there is an option to unlist the package from search results: Is there a…
hertzogth
  • 236
  • 1
  • 2
  • 19
16
votes
1 answer

Nuget - Writing tools for Package Manager Console (custom cmdlets)

I've installed nuget package manager and I really love mvc-scaffold extension. I would like to write similar tool for my projects. Is there any API reference or some documentation for nuget I can learn from ? TIA for any suggestions. Edit: Question…
Jarek
  • 5,885
  • 6
  • 41
  • 55
16
votes
1 answer

where does Nuget download packages when PackageReference is enabled

In visual studio 2017 i have enabled PackageReference so that package reference will be stored in csproj file instead of package.config file I have added these 2 line in csproj file to enable…
LP13
  • 30,567
  • 53
  • 217
  • 400
16
votes
3 answers

Nuget cannot restore Microsoft.Net.Compilers.1.0.0

I am trying to install/restrore Microsoft.Net.Compilers.1.0.0 in VS 2017 using Nuget Package Manager. In the output it shows restore completed. however when i check the packages folder i dont see Microsoft.Net.Compilers folders. And beacuse of that…
LP13
  • 30,567
  • 53
  • 217
  • 400
16
votes
2 answers

Change NuGet package location folder

I want to change NuGet package folder, but it does not change it. What I do is creating file nuget.config: I added this file in…
gdfgdfg
  • 3,181
  • 7
  • 37
  • 83
16
votes
2 answers

Conditional reference in Visual Studio Community 2017

I am creating a multi-platform application. I have a multi-targeted shared library (targeting .netstandard 2.0 and .net 4.5)...See project file: netstandard2.0;net45 When…
16
votes
6 answers

NuGet fails to find existing package

How it's possible that NuGet's Install-Package fails with Unable to find version 'x' of package 'y' when that exact version is released as NuGet to the official repository and it shown on the https://www.nuget.org/packages/y page. Here is specific…
Eugene D. Gubenkov
  • 5,127
  • 6
  • 39
  • 71
16
votes
2 answers

When should I update NuGet packages for a project?

I understand that NuGet packages update process is not automatic for a good reason (a new version could break your code or cause unforeseen problems), but then it transfers the responsibility of updating all packages to the developers themselves.…
julealgon
  • 7,072
  • 3
  • 32
  • 77
15
votes
7 answers

update-database error - NuGet Package (EntityFramework.SqlMigrations)

i installed EntityFramework.SqlMigrations NuGet Package and i get this error . it worked for me in the past and somehow, now it does not work. PM> update-database The term 'update-database' is not recognized as the name of a cmdlet, function,…
15
votes
1 answer

Nuget : Additional computed target framework(s)

In nuget.org, when you check any package there are 2 types of framework. What is the difference between Compatible target framework and additional computed target framework?
Newbie
  • 563
  • 1
  • 5
  • 16
15
votes
7 answers

NuGet Package Manager error: The remote name could not be resolved

I am using version 1.4 and getting this error: The remote name could not be resolved: go.microsoft.com Here are the URLs for the nuget package: https://go.microsoft.com/fwlink/?LinkID=206669 Am i missing something here? It was working fine couple…
Asdfg
  • 11,362
  • 24
  • 98
  • 175
15
votes
6 answers

Problem with uninstalling NuGet Packages

I'm trying to uninstall some packages installed by NuGet. According to the doc described here, I should see an Uninstall button (first screenshot below) when I select the installed package. However, I only see a Manage button (second screenshot…
StarCub
  • 4,141
  • 7
  • 41
  • 58
15
votes
2 answers

Pass array as inputs to Azure DevOps YAML task

I'm trying to configure a CI that will produce NuGet packages as artifacts on Azure DevOps (that will be later pushed to my NuGet server). For this, I'm using Builds Pipelines on Azure DevOps, the YAML version. I have 3 projects that should build…
15
votes
3 answers

Version conflict detected for Microsoft.CodeAnalysis.Common. Reference the package directly from the project to resolve this issue

I want to add the FluentValidation Nuget package in my asp.net core app through Nuget Package Manager.While adding I get this error: Severity Code Description Project File Line Suppression State Error Version conflict detected for…
Vahid Ghadiri
  • 3,966
  • 7
  • 36
  • 45
15
votes
1 answer

How to create meta package (package of all packages) like Microsoft.AspNetCore.All in nuget?

New meta package – package of all packages – Microsoft.AspNetCore.All What does Microsoft.AspNetCore.All represent? First lets look back at first release for ASP.NET Core. Microsoft then announced that everything would be a (nuget) package.…
HamedFathi
  • 3,667
  • 5
  • 32
  • 72