It is possible to get TFS change set number from the local file system?

陌路散爱 提交于 2019-12-22 18:19:54

问题


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?


回答1:


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.

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.

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




回答2:


This is not an answer, but rather a long comment. That's why I've marked it as CW.

Here's a thought experiment:

Pick a time, any time. Determine the latest changeset as of that time. Call it "cs".

How do you know that there isn't a later changeset checked in just seconds after you figured out "cs"?

Without connectivity to the server, there can be no simultaneity.



来源:https://stackoverflow.com/questions/13598086/it-is-possible-to-get-tfs-change-set-number-from-the-local-file-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!