Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Nuget create an error log file when a package is installed?

I have a local Nuget package that I am attempting to install. Everything runs fine with no specific errors I can see, but about 1/2 of the tasks that need to be completed for the install don't seem to happen or do anything.

I have NuGet Package Explorer and I can fix the install if I know where to start. Does NuGet create an error log file someplace when it does an install and where would I find it?

Thanks for the help. Doug

like image 865
drobertson Avatar asked Apr 27 '12 19:04

drobertson


People also ask

What happens when a NuGet package is installed?

NuGet creates a subfolder for each package identifier, then creates subfolders for each installed version of the package. NuGet installs package dependencies as required. This process might update package versions in the process, as described in Dependency Resolution.

What does a NuGet package contain?

Put simply, a NuGet package is a single ZIP file with the . nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package's version number.

How do I know if NuGet is installed?

How do I check the exact version of the NuGet tools that are installed? In Visual Studio, use the Help > About Microsoft Visual Studio command and look at the version displayed next to NuGet Package Manager.


1 Answers

Use the Package Manager Console to execute the install step. Log output is provided there.

Make sure that you select your Package source if you are installing from a local package.

Example output for a failed nuspec project below:

PM> Install-Package MyTestPackage
Successfully installed 'MyTestPackage 0.0.1.4'.
Successfully added 'MyTestPackage 0.0.1.4' to Test_Project.
Missing expression after unary operator '!'.
PM>

Example output with verbose logging below:

PM> Install-Package ClearlyDoesNotExistYet -Verbose
  GET https://www.nuget.org/api/v2/FindPackagesById()?id='ClearlyDoesNotExistYet'
  OK https://www.nuget.org/api/v2/FindPackagesById()?id='ClearlyDoesNotExistYet' 220ms
Install-Package : Unable to find package 'ClearlyDoesNotExistYet'
like image 187
Will Bickford Avatar answered Oct 17 '22 13:10

Will Bickford