安装软件包时,Nuget是否会创建错误日志文件?
我有一个尝试安装的本地Nuget软件包.一切运行正常,没有特定的错误,但是安装所需完成的任务中大约有1/2似乎没有发生或没有做任何事情.
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.
我有NuGet软件包资源管理器,如果我知道从哪里开始,我可以修复安装. NuGet在安装时会在某个地方创建错误日志文件吗?在哪里可以找到它?
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?
感谢您的帮助. 道格
使用Package Manager Console
执行安装步骤.在那里提供了日志输出.
Use the Package Manager Console
to execute the install step. Log output is provided there.
如果要从本地软件包安装,请确保选择Package source
.
Make sure that you select your Package source
if you are installing from a local package.
以下失败的nuspec项目的示例输出:
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'