简体   繁体   English

Nuget Pack TFS-DLL的错误路径

[英]Nuget Pack Tfs - wrong path to dll

My Nuget-Pack-Step in the TFS isn't working, because it is searching my DLL-File at the wrong path. TFS中的我的Nuget-Pack-Step无法正常工作,因为它在错误的路径中搜索我的DLL文件。

My Actual path to the dll is: 我到dll的实际路径是:

D:\Agent1\_work\21\s\src\MyProjectName\bin\Any CPU\Release\netstandard2.0\MyProjectName.dll

But the Nuget-Pack step path is missing my Any CPU . 但是Nuget-Pack步骤路径缺少我的Any CPU But I don't see an option to set it. 但是我看不到设置它的选项。

'D:\Agent1\_work\21\s\src\MyProjectName\bin\Release\netstandard2.0\MyProjectName.dll'.

The NuGet Pack task takes the following arguments: NuGet Pack任务采用以下参数:

  • Path to csproj or nuspec file(s) to pack 要打包的csproj或nuspec文件的路径
  • Configuration to package 配置打包

I suspect that you haven't set the configuration property to Any CPU resulting in the task not being able to find your DLL. 我怀疑您没有将配置属性设置为“任何CPU”,导致任务无法找到您的DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM