Octopack only creating one of two artifacts in Tea

2019-08-05 08:32发布

问题:

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.