Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
187 votes
19 answers
125k views

Unable to Install Any Package in Visual Studio 2015

I've tried every package I could possibly find and none of them will install in my project. I've installed every update listed in the Extensions and Updates list that were available. When I attempt ...
clockwiseq's user avatar
  • 4,209
91 votes
3 answers
43k views

How to publish nuget prerelease version package

I understand how to publish a nuget package using nuget command line nuget command line But I Have searched around I don't find docs about how to publish a nuget prerelease package
icn's user avatar
  • 17.6k
61 votes
6 answers
47k views

Don't include dependencies from packages.config file when creating NuGet package

I am using Nuget to create packages. I would like to create a package which does not contain any dependencies (in the .nuspec) file to any other NuGet packages. My project does have NuGet package ...
Jesse Webb's user avatar
  • 44.7k
48 votes
5 answers
55k views

nuget retrieving package metadata

An error occurred while retrieving package metadata for 'bootstrap.3.3.5' from source 'nuget.org'. ========== Finished ========== Where the defect wonder Is site nuget.org may crash or whether ...
Sultan's user avatar
  • 700
45 votes
6 answers
112k views

Can't uninstall/reinstall NuGet package

I've set up my project with Visual Studio Express 2012, added some C# code, and successfully compiled/deployed to emulator. At some point I decided I want to do something with JSON, and I found that I ...
user826955's user avatar
  • 3,174
31 votes
4 answers
19k views

Add NuGet Packages Folder to Solution File?

Nuget puts the package in my root folder(in my case my trunk folder). I am wondering is there a way to let VS 2010 know about this folder? I am using ankh svn to do my commuting so it would be really ...
chobo2's user avatar
  • 84.9k
29 votes
6 answers
46k views

How to remove NuGet Package from server?

I have added new package to nuget(I'm not talking about adding reference of package into project). I have added new packages to server so that others can consume/use that package in their projects. ...
Balpreet Patil's user avatar
28 votes
7 answers
40k views

An error occurred while retrieving package metadata for ***

This has been asked many times before. The solution (which works for me) is to delete the *** package(s) from the packages.config file (this is enough), and from the packages folder. This is a bad ...
maxx's user avatar
  • 473
23 votes
5 answers
18k views

NuGet: pack command is NOT including nuget dependencies

i have the following setting: nuget.exe Version: 1.6.21205.9031 Project A.csproj packaged into A.1.0.0.0.nupkg, and published to a LOCAL package repository hosted on my local IIS (My VS Nuget ...
Schweder's user avatar
  • 1,544
21 votes
2 answers
20k views

All projects referencing sub-project must install NuGet package Microsoft.Bcl.Build (C#/Windows Phone 7)?

I'm having a particularly difficult refactoring session involving a C# solution with multiple projects in Visual Studio 2012. I needed to pull out a bunch of code into their own assemblies so that ...
Robert Oschler's user avatar
21 votes
3 answers
13k views

.nuget Folder in User space

Due to a problem with my storage, I need to delete or change location of many folder in my User space, but I see a .nuget folder and I would like to know if there is a way in Visual Studio 2016 to ...
Axeen's user avatar
  • 280
20 votes
4 answers
7k views

Nuget Package restore with git submodule

i have a project where i include 2 submodules from git. Both projects have "nuget package restore" enabled, the parent project too. The package folder in the two included submodules is not checked in,...
Sascha Herrmann's user avatar
19 votes
3 answers
37k views

Can't load Assembly System.Net.Http.Formatting in .Net Solution

I get the following error when trying to update-package on the NuGet Console: At line:1 char:1 + Update-Package Microsoft.AspNet.WebApi -reinstall + CategoryInfo : InvalidOperation: (:) [...
Darren Wood's user avatar
  • 1,470
17 votes
2 answers
7k views

Should nuget .props and .targets files be part of the source code repository?

Those files are created during package restore that's why I assume they don't have to be in the repository. Is there further documentation of the purpose of those files which might help to answer the ...
Martin Komischke's user avatar
16 votes
3 answers
50k views

PowerShell NuGet - "no match was found for the specified search criteria", "unable to find dependent packages", etc

I was trying to install the assembly System.IdentityModel.Tokens.Jwt, but I keep getting nuget errors: find-package : No match was found for the specified search criteria and package name 'System....
user8773136's user avatar
16 votes
2 answers
12k views

NuGet - managing and removing multi version packages in single solution

SCENARIO One VS solution with n projects. Project A references package Y v1, Project B references package Y v2. It is now not possible to update all references to package Y for all projects in the ...
Myles McDonnell's user avatar
15 votes
4 answers
19k views

Package tried to add reference to System.Runtime which was not found in the GAC

ASP.NET 4.5.1 or 4.5.2 Updating Nuget package MicrosoftAspNet.Identity.EntityFramework from version 2.2.1 to version 3.0.0-rc1-final I get the following error: Failed to add reference. The package '...
Scott Decker's user avatar
  • 4,237
15 votes
1 answer
5k views

NuGet Limit max major version of a package

Is it possible to tell NuGet that you want to use the latest version of package with particular major version and never above this major version? For instance, let's take the example with jQuery: we ...
Alexander Abakumov's user avatar
12 votes
2 answers
4k views

How to pack command line tools with NuGet?

This is sort of a use-case. Not sure if NuGet was originally created for this so I can imagine that the consensus will be that I should not do what I'd like. Goal: Package and distribute simple ...
Daniel VH's user avatar
  • 121
12 votes
1 answer
4k views

Installing from Nuget adds reference to bin directory

I'm installing the AvsAn (2.1.0) package using the Nuget Package manager. I am expecting the reference path to be to the packages directory, something like: C:\app\packages\AvsAn.dll But a ...
Vinyl Warmth's user avatar
  • 2,436
11 votes
1 answer
686 views

What is the point of Nuget packages?

Maybe I'm doing something wrong or expressing pure ignorance here, but I can't really see how Nuget packages are beneficial? I recently decided to install a number of Nuget packages to replace the ...
QFDev's user avatar
  • 8,928
9 votes
3 answers
14k views

How to register new NuGet package source on .NET Core?

I'm struggling to add new NuGet source to store private packages. I have already tried to add config into my .csproj like this post suggests <?xml version="1.0" encoding="utf-8"?> <...
Vito's user avatar
  • 592
9 votes
3 answers
9k views

nuget pack content files only

I'd like to create a nuget package (from some c# project), but I don't want to embed the generated dll, but just some static files instead. I added a tag at the end of my nuspec file, but nuget ...
Regis Portalez's user avatar
9 votes
1 answer
5k views

'dotnet nuget push ...' doesn't seem to be pushing the symbols

dotnet clean --configuration Debug dotnet build --configuration Debug --version-suffix beta.12 dotnet pack --include-symbols --include-source --configuration Debug --version-suffix beta.12 So far so ...
Valo's user avatar
  • 1,991
9 votes
2 answers
2k views

NuGet Package not copying XMLDoc file along with dll to bin

I'm using NuGet GUI and trying to include XML File along with my DLL to distribute help along with the DLL. When I install package in any of the project, it adds the DLL reference successfully, but ...
Amit Andharia's user avatar
8 votes
4 answers
13k views

Cannot install Xamarin.Android.Support.v4

I am trying to install this particular package into my program and get the following error: Error Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install ...
DaveK's user avatar
  • 574
8 votes
2 answers
3k views

Nuget how can i specify packages location?

i have simple folder structure: project1 |_ nuget.config http://tinyurl.com/84ynb9z |_ packages.config http://tinyurl.com/72zpy3z project2 |_ nuget.config http://tinyurl.com/84ynb9z |_ packages....
Sasha's user avatar
  • 20.7k
7 votes
5 answers
24k views

Some NuGet packages are missing from the solution in Visual Studio Application

After pulling some code updates I found I got this message when building. Some NuGet packages are missing from the solution. The packages need to be restored in order to build the dependency graph. ...
Kirsten's user avatar
  • 17.4k
7 votes
1 answer
3k views

Auto-add PackageReferences to NuGet package

In my project I reference some packages with PackageReference like that: But, if I run pack command, it doesn't include them unless I manually add them to .nuspec file. I want to automatically add ...
misticos's user avatar
  • 757
7 votes
1 answer
714 views

NuGet doesn't copy config file

I've tried many different things now, none of which seem to work out as expected. I would like to share an example config(or image or whatever) file with my library that someone would be able to use ...
Kjellski's user avatar
  • 925
6 votes
3 answers
3k views

Nuget Push always returning 404 (Not Found)

I've tried to publish a nuget package to my GitHub Packages account but in all cases I'm having the 404 error. I've followed as requested on the GitHub's site: nuget source Add -Name "GitHub" -Source ...
Levi Silveira's user avatar
6 votes
1 answer
1k views

Control the version constraint for dotnet pack project references

When I'm using dotnet pack to create nuget packages, it creates package dependencies for project references. It seems to always create these with the constraint being "greater than or equal to the ...
Matt Whetton's user avatar
  • 6,726
6 votes
1 answer
621 views

Data validation with mostly feature in List<T> using .NET Core C#

I have fetched the data as List < T > by reading from different formats e.g. CSV, Parquet, Avro, JSON. I want to validate the data with mostly feature e.g. The temperature should remain with in ...
user3542245's user avatar
6 votes
1 answer
2k views

FileNotFoundException for NuGet package

I downloaded and installed the NuGet Package: Select.Pdf. At runtime, when I click on the button that utilizes the code using the Select.Pdf namespace, I get the following exception: The package is ...
Uchiha Itachi's user avatar
6 votes
1 answer
2k views

The type initializer for 'Nuget.Proxy Cache' threw an exception

I am getting the error The type initializer for 'Nuget.Proxy Cache' threw an exception when trying to connect to the Nuget offcial Package source. I am behind a corporate network, however I doubt the ...
user979441's user avatar
5 votes
2 answers
2k views

Nuget Update is not working propelry

I want to update the Nuget packages used in the solution file and currently, I am using the following command to update the Nuget packages. NuGet restore <projectPath> [options] Reference: ...
Venkat's user avatar
  • 2,567
5 votes
2 answers
9k views

Nuget package not updating in Visual Studio

I'm creating a nuget package, which includes a few dlls. After the first iteration of this package, my team lead requested that I add another dll. I add it to the nuspec file, delete the old package ...
Corey P's user avatar
  • 1,045
5 votes
1 answer
1k views

Schema of nuget packages.lock.json file generated by locking dependencies during restore

I can enable the packages.lock.json files to be generated as described in this link: https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#locking-dependencies ...
satoukum's user avatar
  • 1,238
5 votes
2 answers
1k views

When using nuget packages is there a way to avoid netstandard assemblies in favor of PCL?

I have a desktop application and a simple class library that targets the .Net framework 4.6.2. Recently I noticed that when I update my nuget packages in VS 2017 (15.6.3), one of them started pulling ...
David Beavon's user avatar
  • 1,185
5 votes
0 answers
262 views

Nuget updating-package removes reference from project

I'm encountering an issue with nuget package manager. After updating from svn I did a restore on nuget package and I updated it by Update-Pakcage command. After the update the old reference was ...
marczulajtis's user avatar
5 votes
0 answers
907 views

How to transform/increment code on a .cs file on a Nuget package

I'm creating a Nuget Package for an ASP.NET MVC5 Application, and i want to increment a simple line of code to an already existent file in my project, which is the /App_Start/BundleConfig.cs. I want ...
Edgar Froes's user avatar
4 votes
3 answers
12k views

How to automate NuGet package creation using Jenkins?

For one of my projects I am using many dependencies in the form of NuGet packages. When I change any of them, I need to recreate the package and deploy it every time. We currently have Jenkins setup ...
Chervenkov's user avatar
4 votes
2 answers
732 views

Using NuGet to share code across developers

I am using NuGet in attempt to find a better way to share and update packages to share across multiple developers. I installed Nuget and after choosing the option "Manage | NuGet pakages", I ...
TheWommies's user avatar
  • 5,012
4 votes
3 answers
4k views

NuGet feed hosting options including MyGet [closed]

I have been investigating options for NuGet feed hosts. Currently, we use TeamCity to build/publish packages to TC's built-in server. For a Visual Studio package-source pointed to TC, we've found ...
BaltoStar's user avatar
  • 8,691
4 votes
2 answers
3k views

Including project referenced PDB files into nuget package

I'm trying to include PDB files of project references into Nuget package, by using dotnet pack command. I've found solution to include project referenced DLL files into nuget package. This needs ...
Kamil Zemczak's user avatar
4 votes
3 answers
5k views

NuGet.targets" cannot be imported again. It was already imported warning

I am getting this warning in Visual Studio 2013 for some of my projects: NuGet.targets" cannot be imported again. It was already imported My Main WCF project in the solution file has this: Project("...
Ben Humphrey's user avatar
4 votes
3 answers
884 views

Downloading NuGet packages for self hosted feed

The NuGet web site has an excellent article for hosting your own NuGet feed. In our case we are an IT shop that needs to fully vet packages before making them available to our development staff so we ...
Chris Melvin's user avatar
4 votes
1 answer
13k views

Using -verbosity and -version in the nuget command tool suppresses verbose output

So I am trying to use both the -verbosity and -version option together on the nuget command line. I need to use both and then parse the output of the verbosity log (this will determine other behaviors)...
amza's user avatar
  • 810
4 votes
1 answer
5k views

Package tab missing from project properties

Attempting to create nuget package to upload to our own nuget sever, and would like to eliminate the manual process of creating and editing the nugspec file. Everything I've read, says the setting can ...
Craig Hogan's user avatar
4 votes
2 answers
4k views

Create a Nuget package without its dependencies to be added as references

I need to create a Nuget package out of my library .net framework project. The problem is that my project depends on many other dlls which I do not want my Nuget users to see. So I want people to ...
Michael Mualem's user avatar

1
2 3 4 5