The*_*Man 5 octopus-deploy azure-devops
我将Visual Studio Online与Visual Studio 2013一起使用。
You are trying to build with OctoPack, but the NuGet targets file that OctoPack depends on is not available on this computer. This is probably because the OctoPack package has not been committed to source control, or NuGet Package Restore is not enabled
根据此链接https://octopusdeploy.com/blog/octopack-3.0,我需要进行一些更改以使程序包还原正常工作,但是上一个链接中的另一个链接说,如果使用VS2013和Visual Studio Online,则无需进行配置Nuget.org
当我在VS中构建时,首先还原所有软件包,然后再构建项目。另外,如果我构建项目并通过命令行调用Octopack,一切正常。有什么想法吗?
如果你NuGet Package Restore在构建之前运行,这应该可以工作。但是,请确保您的项目文件中引用的路径OctoPack.targets是正确的 - 您可能已经移动了您的包文件夹或项目文件,并且相对路径不再匹配。修复它的最简单方法是运行Update-Package -Reinstall Octopack.
NuGet Package Restore最近已更改,因此您无需在解决方案中包含 NuGet 即可进行包还原。但是,OctoPack 仍然需要NuGet在路径上才能找到它。您可以尝试在调用 OctoPack 时添加此参数来显式指定路径NuGet。
/p:OctoPackNuGetExePath=<path>\nuget.exe
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1717 次 |
| 最近记录: |