azure-devops - OctoPack 在 TFS 构建中失败

标签 azure-devops octopus-deploy

我正在使用 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 .

关于azure-devops - OctoPack 在 TFS 构建中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24718660/

相关文章:

octopus-deploy - 八达通部署错误 : Found multiple target elements, 但 'Replace' 转换仅适用于第一个匹配

iis-7 - Octopus Deploy 不更新网站

octopus-deploy - Tentacle/Octopack - 按文件夹(项目名称)对应用程序进行分组

git - 为开源 git 存储库做出贡献的工作流程是什么?

docker - 带有Web应用程序容器的Azure DevOps CI

c# - Azure devops - 在 netcore/模板项目之外找不到 NUnit 测试

git - 如何从 .gitignore 中列出的存储库中删除文件而不更改空格

azure - Azure Key Vault 是否支持常规文本文件?

continuous-integration - 八达通部署在同一台机器上

powershell - 读取 Octopus 变量