It is possible to get TFS change set number from t

2019-05-26 05:43发布

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?

2条回答
神经病院院长
2楼-- · 2019-05-26 06:06

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

查看更多
我想做一个坏孩纸
3楼-- · 2019-05-26 06:20

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.

查看更多
登录 后发表回答