Octopack只使用八达通部署在TeamCity中创建两个工件之一 [英] Octopack only creating one of two artifacts in TeamCity using Octopus deploy

查看:168
本文介绍了Octopack只使用八达通部署在TeamCity中创建两个工件之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个多项目解决方案,并且正在使用八达通部署和TeamCity部署。



我已经在要创建的两个项目上安装了Octopack NuGet软件包作为CI构建中的工件。



我已经在构建步骤中设置了以下内容:




并检查了这两个项目的csproj文件,可以看到:

 < Import Project =.. \packages\OctoPack.2.0.26\targets\OctoPack.targets/> 

然而,在构建运行后,其中一个项目已经被打包成工件,另一个已经被不能看到两者之间有什么区别。



在TeamCity或我的解决方案中还有其他一些事情吗?

解决方案

我不得不在项目的配置管理器中设置以下内容,而不是生成这些工件:

 集成|混合Platforms.ActiveCfg =集成|任何CPU 
集成|混合Platforms.Build.0 =集成|任何CPU

Teamcity然后高兴地制作了包。


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?

解决方案

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.

这篇关于Octopack只使用八达通部署在TeamCity中创建两个工件之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆