问题
In SVN you can use some keyword expansion to put your revision number inside source files. I find this particularly useful on SQL scripts.
Using TFS2010, how can I put the changeset number inside a source file ?
回答1:
If you really must insert the current changeset number in a file, you can use the Keyword Substitution Check-in Policy.
来源:https://stackoverflow.com/questions/10247305/how-can-i-store-the-new-changeset-number-in-my-source-code-after-i-check-in