nuget-package
List all the nuget packages with “dependencies recursively” for a given project/Solution for .NET Core project in VS2017
You can use the dotnet cli: dotnet list package –include-transitive. The dotnet-outdated global tool probably has similar functionality.
Enable NuGet Package Restore on Visual Studio 2013
To find the menu item: “enable nuget package restore” right-click in the solution explorer on the solution – not on the project. You get a message: Do you want to configure this solution to download and restore missing NuGet packages during build? Wasn’t that what you were looking for?
NuGet add external reference
The <references> element defines the references that will be added to the project when your package is installed. What you are missing is the part that defines the files that are part of your package which is done with the <files> element. So your .nuspec file should look something like the following: <?xml version=”1.0″?> <package> … Read more
CMake and MsVS-NuGet
EDIT: This answer does not apply to C++ projects. EDIT: As of CMake 3.15, CMake supports referencing Nuget packages with VS_PACKAGE_REFERENCES. Now, this is a much cleaner solution than the work-around proposed earlier below. To add a Nuget package reference to a CMake target, use the package name and package version separated by an _ … Read more
Reinstalling NuGet packages with NuGet installed as VS Extension
Reinstall all packages in all projects of the current solution: Update-Package -Reinstall You can find more information about reinstalling nuget packages here
Package requires NuGet client version ‘2.12’
Update your NuGet Package Manager extension. Go to Tools->Extensions and Updates and select Updates->Visual Studio Gallery. Update the NuGet Package Manager extension. Then try to install the package after Visual Studio gets restarted.
Can NuGet add a .cs file to the destination project?
Just put your .cs file in a folder called “content”, at the root of the package. from the docs: “you can layout a directory structure that follows the NuGet conventions. tools – The tools folder of a package is for PowerShell scripts and programs accessible from the Package Manager Console. After the folder is copied … Read more
An error occurred while trying to restore packages. Please try again
This is how I fix my issue: First, I clear my Package Cache: Second, I make sure I have the right path source and click the available package source:
Unauthorized nuget package from Visual Studio Team Services using asp.net core rc2
I know that it’s not exactly the same issue, but people may come across this one alongside as I did. I have installed VS Community 2019 and yesterday I decided to remove the VS 2017, but after that, when I tried to restore the Nuget Packages made by the company, it started displaying an error … Read more