Reputation: 34830
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?
Upvotes: 2
Views: 1571
Reputation: 65544
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
Upvotes: 2
Reputation: 161773
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.
Upvotes: 0