TeamCity的 - 的MSBuild - SVN - 的AssemblyVersion - C# [英] TeamCity - MSBuild - SVN - AssemblyVersion - C#

查看:219
本文介绍了TeamCity的 - 的MSBuild - SVN - 的AssemblyVersion - C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用MSBuild +社区任务来更改AssemblyVersion,AssemblyFileVersion +更多在AssemblyInfo.cs,通过TeamCity,它的工作原理类似一个魅力:)





但是我想把修改的AssemblyInfo.cs提交回仓库。

strong>



我尝试使用社区任务中的 SvnCommit 任务,但在代理的源没有检出,它似乎是直接从TC导出或复制(没有.svn文件夹)。
这实际上很酷我认为和良好的做法,但在这种情况下,我真的想能够提交更新的AssemblyInfo.cs文件(+也许这样自动生成的文档)回到仓库。



任何人都找到了一个很好的方法来做这个?




$ b

Garrett

解决方案

请参阅Restuta的评论:)


I'm currently using MSBuild+Community Task's to change the AssemblyVersion, AssemblyFileVersion + more in AssemblyInfo.cs, via TeamCity and it works like a charm :).

However I would like to commit the modified AssemblyInfo.cs back to the repo.

How can I do that?

I tried with the "SvnCommit" task from Community Tasks, but on the Agent's the source is not checked out, it appears to be Exported or copied directly from TC instead (there's no .svn folders). This is actually very cool I think and good practise, but in this case I would really like to be able to commit the updated AssemblyInfo.cs files (+maybe so autogenerated documentation) back to the repo.

Anyone found a nice way of doing this?

Kind Regards

Garrett

解决方案

See Restuta's comment :).

这篇关于TeamCity的 - 的MSBuild - SVN - 的AssemblyVersion - C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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