验证:构建没有办法遵守“每次发布都自动递增修订"的规定.从项目设置 [英] Verify: no way for a build to respect "Automatically increment revision with each publish" setting from project

查看:74
本文介绍了验证:构建没有办法遵守“每次发布都自动递增修订"的规定.从项目设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用TFS 2012.

Using TFS 2012.

从Visual Studio发布(我正在发布ClickOnce应用程序)时,请注意上述在项目级别的设置.在构建服务器上运行(发布的)构建时,不是这样.看来我必须创建一个自定义任务 (例如: http://weblogs.asp.net/bradleyb/archive/2005/12/02/432150.aspx )来实现它.

The above mentioned setting at the project level is respected when publishing (I'm publishing a ClickOnce app) from Visual Studio.  When running a build (that publishes) on a build server, it isn't.  It looks like I have to create a custom task (like this: http://weblogs.asp.net/bradleyb/archive/2005/12/02/432150.aspx) to get it to happen.

期望这确实可行,这似乎是合理的.真的没有简单的方法吗?

It sure seems reasonable to expect this to work.  Is there really no simple way?

推荐答案

布拉德伍德, 

感谢您的信息.

使用TFS 2010发布和部署ClickOnce,请参阅本文中的信息: http://blog.dontpaniclabs.com/post/2011/04/29/ClickOnce-Publish-Publish-Publish-and-Deploy-from-Team-Foundation-Server-2010.aspx .  

Publish and deploy ClickOnce using TFS 2010, please refer to the information in this article: http://blog.dontpaniclabs.com/post/2011/04/29/ClickOnce-Publish-and-Deploy-from-Team-Foundation-Server-2010.aspx.   

我们知道TFS 2012会调用MSBuild v4.0来编译并在生成计算机上发布项目.如果您可以使用MSBuild命令在构建机器上手动构建和部署项目,那么我认为TFS 2010 Build可以构建和部署项目. 也进行部署,因此您可以与MSBuild专家联系,以确认是否存在实现MSBuild的简单方法.   

And we know that TFS 2012 invoke MSBuild v4.0 to complier and publish project on build machine. If you can build and deploy your project using MSBuild command manually on build machine, I think TFS 2010 Build can build and deploy it too, so you can contact MSBuild experts to confirm if there’s the simple way to achieve that MSBuild.    


这篇关于验证:构建没有办法遵守“每次发布都自动递增修订"的规定.从项目设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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