msbuild - 您如何在Atlassian OnDemand上构建C#项目?

标签 msbuild continuous-integration bamboo

我一直在通过MS Visual Studio IDE构建我的C#项目,并在Windows上从Jenkins调用msbuild。现在,我想在Atlassian OnDemand上构建C#项目。

但是,msbuild在OnDemand中未作为生成器选项列出,我找不到有关如何在OnDemand上构建C#项目的任何文档。

最佳答案

更新

Atlassian OnDemand Bamboo自2012年7月中旬开始拥有Windows库存图片,请参阅Azwandi Mohd Aris的comment:

Just an update that Bamboo OnDemand now ships with a Windows-based AMI - see release notes at https://confluence.atlassian.com/display/AOD/July+2012#July2012-Bambooupgrade



同时,此图像还支持自2012年11月上旬起根据James Dumay的answer的MSBuild。

初步答案

构建器的配置是Restricted Functions in Atlassian OnDemand for Bamboo之一:

Bamboo OnDemand only runs builds using elastic agents. Hence, capabilities can only be configured by using a custom image.



因此,原则上,您将需要使用Atlassian提供的默认Stock images之一,或者使用我们自己的Create a custom elastic image。尽管Atlassian在Bamboo 3.4中提供了Windows stock image,但最令人讨厌的是Bamboo for OnDemand的版本仍停留在3.0(请参阅Atlassian OnDemand Application Versions),包括DVCS的长期延迟更新最近又被推迟了(请参阅Lingbo Lu's comment:我们希望我们能够交付它在7月/8月的时间范围内)

因此,暂时恐怕您需要应用Bamboo 3.0版本的Creating a Custom Elastic Image并为自己的任务创建适当的自定义图像。

更新

Atlassian Answers上也有几个相关的线程:

詹姆斯·杜迈(James Dumay)对How do I run .NET builds on JIRA Studio的回答概述了事务的状态,并依次推荐了格雷斯·莫里森(Grace Mollison)对Setting up a windows AMI for use with Elastic Bamboo的指示。但是,RodH关于How can I run Bamboo OnDemand with MSBuild?的评论表明此方法/解决方案存在未说明的问题。

因此,最终要做好艰难的准备。

关于msbuild - 您如何在Atlassian OnDemand上构建C#项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10761333/

相关文章:

c# - Clean+Rebuild 和 Clean+Build 之间有什么区别吗

visual-studio-2010 - 是否可以在一条 CMD 行语句中设置多个环境变量?

bash - gitlab-ci.yml : syntax error near unexpected token `fi'

windows - Jenkins 无法在 Windows 上通过 Git/SSH 克隆 Git 存储库

java - Bamboo 和 Artifactory 之间的语义版本控制?

c# - 不同的构建操作在 csproj 中做了什么。 IE。附加文件或假货

c# - CS1607 : Assembly generation -- The version '1.4.0.85725' specified for the 'file version' is not in the normal 'major.minor.build.revision' format

phpunit - 持续集成,最佳实践,使用Propel ORM将实际测试数据输入数据库

git - 以编程方式触发的 Bamboo 计划

bamboo - 强制要求 Bamboo 作业变量?