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
56
votes
15 answers

MVC bootstrap navbar not working after running NuGet updates

An MVC app broke after we updated all the NuGet packages. After trying everything I created a new MVC app, updated the NuGet packages and the basic navbar...
54
votes
9 answers

Microsoft.AspNetCore.App 2.1.1 upgrade "Blocked by project"

I'm trying to upgrade a .net core 2.1 project to the latest version of Nuget packages such as Microsoft.Extensions.DependencyInjection.Abstractions 2.1.1. However this is blocked by the package reference Microsoft.NETCore.App, when I try to upgrade…
Elva
  • 1,003
  • 2
  • 9
  • 20
53
votes
3 answers

Automatic native and managed DLLs extracting from Nuget Package

This is driving me crazy for several months now and I'm still not able to achieve it. My managed libraries are extracted from the Nuget package but not the natives ones. We have a bunch of managed and native libraries provided by another company. We…
Jérôme MEVEL
  • 7,031
  • 6
  • 46
  • 78
52
votes
13 answers

Nuget Package - feed (VSTS) :Exception 'System.AggregateException' thrown when trying to add source

I have created a new feed with in Package Release hub (VSTS), installed the credentials, then added the package source. Now, I am using Visual Studio 2015 to install Micrososft.Aspnet.mvc to a project, however it gives the following…
50
votes
3 answers

How to automatically update NuGet packages to latest available version

I have two repositories, and I need compiled libraries from one repository in the other. I don't want to manually check repo1 for updated libraries, and copy/commit to repo2, because that is stupid. I've got repo1 building NuGet packages on each…
themilkyninja
  • 886
  • 2
  • 9
  • 15
50
votes
13 answers

Could not install package '--'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5'

I created this package, I need it in a project but couldn't install it, this error appears: Could not install package 'Mshwf.NiceLinq 1.0.9'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but…
mshwf
  • 7,009
  • 12
  • 59
  • 133
49
votes
3 answers

How Can I "Update-Package" to a Previous Version in the Package Manager Console?

I have a version of a package installed in my project but during testing I have found a problem with it. I tried the obvious thing Update-Package -Id Foo.Bar -Version 1.0.0 -Force but the Update-Package cmdlet doesn't have a -Force parameter, and it…
Damian Powell
  • 8,655
  • 7
  • 48
  • 58
48
votes
4 answers

How to find out which .NET framework nuget package targets?

I have C# project that has to target .NET 3.5. framework and I have several nuget packages I'd like to install in the given project. How to find out, for a given nuget package, which .NET framework versions it supports (by version of package for…
dragan.stepanovic
  • 2,955
  • 8
  • 37
  • 66
47
votes
2 answers

How to get the url of a .nupkg file?

I want to download some .nupkg files using my browser In nuget.org, there are no links to the .nupkg file
Orlando Osorio
  • 3,116
  • 7
  • 29
  • 52
47
votes
12 answers

The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly

After installing Slow Cheeath (v. 2.5.10.3) to two projects in my solution, I am receiving the following error: "The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly…
46
votes
4 answers

NuGet and multiple solutions

We have two solutions: foo.sln and bar.sln I have a common library that is used by both foo and bar. Common.csproj is used by both. If I open foo and update nuget references, all references in Common.csproj point to foo/packages/. If I later open…
Code Silverback
  • 3,204
  • 5
  • 32
  • 39
46
votes
2 answers

What is the purpose of Antlr package in Visual Studio 2013 ASP.NET project?

The ASP.NET (web forms) project template in Visual Studio 2013 includes several packages. I'm trying to figure out which ones are essential (may need to create a separate question for this). The post at…
Alek Davis
  • 10,628
  • 2
  • 41
  • 53
45
votes
4 answers

Adding reference to another project from visual studio code

If a library (eg, on github) doesn't distribute itself via a nuget package, I'd have to manually include it as a reference, correct? I see a lot of reference posts for how to add a reference to a project for Visual Studio, but I can't seem to figure…
user6728767
  • 1,123
  • 3
  • 15
  • 31
45
votes
9 answers

Nuget package installed but references not resolved

I have a multi-project solution with Prism Nuget packages installed in several projects. I then attempted to add a Prism Mef extensions package to one of the projects using the Nuget Package Manager UI (I have already added it to one of the other…
Glen Thomas
  • 10,190
  • 5
  • 33
  • 65
44
votes
3 answers

Command Line Parser Library - Boolean Parameter

I try to pass a boolean parameter to a console application and process the value with the Command Line Parser Library. [Option('c', "closeWindow", Required = true, HelpText = "Close the window.")] public bool CloseWindow { get; set; } I tried to…
Sebastian S.
  • 1,173
  • 3
  • 13
  • 22