是否可以从本地文件系统获取 TFS 更改集编号? [英] It is possible to get TFS change set number from the local file system?

查看:20
本文介绍了是否可以从本地文件系统获取 TFS 更改集编号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个解决方案的本地副本.绑定到TFS

I have a local copy of a solution. It is bound to TFS

是否可以在不调用服务器的情况下从本地文件系统中获取当前更改集信息?

Is possible to derive the current change set information from the local file system without doing a call to the server?

推荐答案

这里有一个解决方法,如果您可以使用 [assembly: AssemblyFileVersion("1.0.0.RevisionNumber")]您可以在那里设置更改集信息.

Here is a workaround, if you can use the Revision number in the [assembly: AssemblyFileVersion("1.0.0.RevisionNumber")] you could set the change set information there.

将程序集版本号与 TFS Buildnumber 对齐,这样每个构建时,每个项目 AssemblyInfo.cs 将包含更改集信息.诚然,这将是项目范围的,而不是特定于文件的.

Aligning assembly version numbers with TFS Buildnumber, this way each time you build, each projects AssemblyInfo.cs would contain the change set info. Admittedly this would be project-wide, not file specific.

经过更多研究后,我发现了这个线程,它看起来非常接近:TFS 和 msbuild 版本号和最后一个变更集

After some more research I found this thread and its seems very close: TFS and msbuild version number with last changeset

这篇关于是否可以从本地文件系统获取 TFS 更改集编号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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