Octopack only creating one of two artifacts in Tea

2019-08-05 07:55发布

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:

enter image description here 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?

2条回答
我只想做你的唯一
2楼-- · 2019-08-05 08:32

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.

查看更多
Animai°情兽
3楼-- · 2019-08-05 08:37

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

查看更多
登录 后发表回答