自动更新与修订文件从TFS? [英] Automatically updating a file with Revision from TFS?

查看:309
本文介绍了自动更新与修订文件从TFS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是很新的TFS(其实我只用它,因为我在codePLEX有些项目并没有想通过svnbridge)和我正在寻找的东西相当于$修订$参数在SVN。

I'm quite new to TFS (actually I only use it because I have some projects on CodePlex and did not want to go through svnbridge), and I'm looking for something equivalent to the $Revision$ parameter in SVN.

从本质上结帐,我想更新的文件包含了最新的版本号,显示为版本号(就像在SO底部)。

Essentially on checkout, I want to update a file to contain the newest Revision number, to be displayed as Version number (just like at the bottom of SO).

有什么已经内置在.NET 3.5 SP1,或任何官方/标准的MSBuild任务,甚至相当于一些只是删除$修订$且具有TFS客户端的MSBuild做魔术结账?

Is there anything already built-in in msbuild of .net 3.5 SP1, or any official/standard msbuild task, or even something equivalent of just dropping $Revision$ and having the TFS client do the magic on checkout?

推荐答案

关键字扩展当前不支持TFS。这往往是由惊喜需要的人。下面是几个关于该主题的博客文章,你还会发现一个链接那里,如果你想投给功能带你到微软网站。我知道这是什么,球队获得要求不时 - 但他们还没有碰到任何人,实际的需要的关键字扩展了,只是很多人都还挺只是习惯了

Keyword expansion is not currently supported in TFS. This often takes people by suprise. Below are a couple of blog posts on the topic, you will also find a link there to take you to the Microsoft site if you want to vote for the feature. I know that it is something that the Team get asked for from time to time - but they have yet to come across anyone that actually needs keyword expansion anymore, just a lot of folks are kinda just used to it.

反正 - 有读,看看你的想法

Anyway - have a read and see what you think.

  • Buck Hodges - Keyword expansion in TFS
  • Me - Why have Keyword Expansion?

这篇关于自动更新与修订文件从TFS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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