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

筅森魡賤 提交于 2020-01-03 08:39:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!