Octopack only creating one of two artifacts in TeamCity using Octopus deploy

落花浮王杯 提交于 2020-01-05 13:10:49

问题


I have a multiple project solution and am using Octopus Deploy and TeamCity for deployment.

I have installed the Octopack NuGet package on two projects that I wish to be created as artifacts during the CI build.

I have set the follwing in my build step:

and have checked the csproj files of both projects and can see:
 <Import Project="..\packages\OctoPack.2.0.26\targets\OctoPack.targets" />

However, after the build runs one of the projects has been packaged as an artifact and the other one hasn't and cant see what the difference between the two is.

Is there something else I should be doing in TeamCity or in my solution?


回答1:


I had to set the following in configuration manager on the project that wasn't producing the artifact:

Integration|Mixed Platforms.ActiveCfg = Integration|Any CPU
Integration|Mixed Platforms.Build.0 = Integration|Any CPU

Teamcity then happily produced the package.




回答2:


Make sure you check in the \packages\OctoPack.2.0.26\targets\OctoPack.targets file to your source control.



来源:https://stackoverflow.com/questions/19958074/octopack-only-creating-one-of-two-artifacts-in-teamcity-using-octopus-deploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!