nuget tfs 构建 2015
nuget tfs build 2015
我正在尝试使用 NuGet 打包并将带有 TFS Build 2015 的包发布到本地 NuGet 服务器。我收到错误,我不确定我错过了什么。感谢您的帮助。
这是错误
开始任务:NuGet Packager
将工作文件夹设为默认:C:\Lucky\agent\tasks\NuGetPackager[=31=].1.58
执行 powershell 脚本:C:\Lucky\agent\tasks\NuGetPackager[=31=].1.58\NuGetPackager.ps1
指定检查模式
在解决方案参数中找不到模式。
找到的文件:1
--文件:"C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter"
属性 DirectoryName 不存在或未找到。
创建 Nuget 参数:
--ARGS: pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release
使用 pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release on 调用 nuget
C:\Lucky\agent\agent\worker\tools\NuGet.exe pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release
MSBuild 自动检测:使用来自 'C:\Program Files (x86)\MSBuild.0\bin' 的 msbuild 版本“14.0”。
请指定要使用的 nuspec 或项目文件。
从工具 NuGet.exe
返回意外退出代码 1
完成任务:NuGetPackager
NuGetPackager 任务失败。这导致作业失败。查看任务的日志以了解更多详细信息。
根据错误信息:
Please specify a nuspec or project file to use. Unexpected exit code 1
returned from tool NuGet.exe
您可能在 nuget 包任务中指定了错误的参数,请仔细检查您是否遵循了以下要求:
Specify .csproj files (for example, **\*.csproj
) for simple projects. In this case:
- The packager compiles the .csproj files for packaging.
- You must specify Configuration to Package (see below).
- You do not have to check in a .nuspec file. If you do check one in, the packager honors its settings and replaces tokens such as $id$ and
$description$.
Specify .nuspec files (for example, **\*.nuspec
) for more complex projects, such as multi-platform scenarios in which you need to
compile and package in separate steps. In this case:
The packager does not compile the .csproj files for packaging.
Each project is packaged only if it has a .nuspec file checked in.
- The packager does not replace tokens in the .nuspec file (except the element, see Use build number to version package,
below). You must supply values for elements such as and
. The most common way to do this is to hardcode the
values in the .nuspec file.
请仔细检查您的参数,更多详情请参阅本教程-- Pack NuGet packages。
此外,您还可以 enable verbose debug mode 添加 system.debug=true
以获得更详细的构建日志信息以进行故障排除。
我正在尝试使用 NuGet 打包并将带有 TFS Build 2015 的包发布到本地 NuGet 服务器。我收到错误,我不确定我错过了什么。感谢您的帮助。
这是错误 开始任务:NuGet Packager
将工作文件夹设为默认:C:\Lucky\agent\tasks\NuGetPackager[=31=].1.58 执行 powershell 脚本:C:\Lucky\agent\tasks\NuGetPackager[=31=].1.58\NuGetPackager.ps1 指定检查模式 在解决方案参数中找不到模式。 找到的文件:1 --文件:"C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" 属性 DirectoryName 不存在或未找到。 创建 Nuget 参数: --ARGS: pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release 使用 pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release on 调用 nuget C:\Lucky\agent\agent\worker\tools\NuGet.exe pack "C:\Lucky\agent_work\s\Dev\FabrikamFiber.CallCenter" -OutputDirectory "C:\Lucky\agent_work\s" -Properties Configuration=Release MSBuild 自动检测:使用来自 'C:\Program Files (x86)\MSBuild.0\bin' 的 msbuild 版本“14.0”。 请指定要使用的 nuspec 或项目文件。 从工具 NuGet.exe
返回意外退出代码 1完成任务:NuGetPackager
NuGetPackager 任务失败。这导致作业失败。查看任务的日志以了解更多详细信息。
根据错误信息:
Please specify a nuspec or project file to use. Unexpected exit code 1 returned from tool NuGet.exe
您可能在 nuget 包任务中指定了错误的参数,请仔细检查您是否遵循了以下要求:
Specify .csproj files (for example,
**\*.csproj
) for simple projects. In this case:
- The packager compiles the .csproj files for packaging.
- You must specify Configuration to Package (see below).
- You do not have to check in a .nuspec file. If you do check one in, the packager honors its settings and replaces tokens such as $id$ and $description$.
Specify .nuspec files (for example,
**\*.nuspec
) for more complex projects, such as multi-platform scenarios in which you need to compile and package in separate steps. In this case:
The packager does not compile the .csproj files for packaging.
Each project is packaged only if it has a .nuspec file checked in.
- The packager does not replace tokens in the .nuspec file (except the element, see Use build number to version package, below). You must supply values for elements such as and . The most common way to do this is to hardcode the values in the .nuspec file.
请仔细检查您的参数,更多详情请参阅本教程-- Pack NuGet packages。
此外,您还可以 enable verbose debug mode 添加 system.debug=true
以获得更详细的构建日志信息以进行故障排除。