问题
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
回答1:
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'
来源:https://stackoverflow.com/questions/10356981/does-nuget-create-an-error-log-file-when-a-package-is-installed