安装软件包时,Nuget是否会创建错误日志文件? [英] Does Nuget create an error log file when a package is installed?

查看:104
本文介绍了安装软件包时,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'

这篇关于安装软件包时,Nuget是否会创建错误日志文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆