See an article on CSDN [how to *. CS file to add version tracking information? Article and feel that versioning of the project will have some practical implications. However, due to the lack of pictures in the text, there is no test, the concrete effect is not known. After consulting the author of the blog Park in the essay, according to the blog Park, the author of some of the operation of the one by one experiment, the results and netizens like "I did not get out!" ”。 There is no way, only try to search MSDN, found one of the Enable Keyword expansion article, according to the operation of the text in a try really worked! Now sorting out the specific implementation steps to share to everyone, hope to help you! First: Run Visual SourceSafe 6.0 admin, Login to VSS's system management interface with Admin, select Tools menu, click Options to enter Option Settings page, expand keywords in Files on General Options page Add *.cs to the text box below, click OK when finished, and save the option.
Note: If the vb.net program can be added to the *.vb, and so on! You can also enter multiple file types, such as *.txt, *.C, and *.vb,*.cs,*.vb separated by commas. Second: Run Microsoft Visual SourceSafe 6.0, go to the main interface, select the Tools menu, click the Options Entry option Settings page, go to the Local Files Options page, and select Copy keyword-expanded Files into working folder option, click [OK] when finished, and save options. The following is where you can add version tracking information to your. NET projects.
In every one. At the beginning of the CS file, add the following code:
/* $Header $
$Author $
$Date $
$Revision $ $History $*/
This way, the version information appears automatically when you check in or out after each change (please do not change it manually):
/* $Header:/testvss/testvss/testvss/class1.cs 9 05-07-26 13:50 edward.net $
$Author: Edward.net $
$Date: 05-07-26 13:50 $
$Revision: 9 $ $History: Class1.cs $
*
* ***************** Version 9 *****************
* User:Edward.Net date:05-07-26 time:13:50
* Updated in $/testvss/testvss/testvss
*/
Other resources (from Y97523SZB how to be in *. CS file to add version tracking information? ):
Type this keyword
To add the following
$Archive: $
VSS Archive File Location
$Author: $
User who's last changed the file
$Date: $
Date and time of the last check in
$Header: $
Logfile, Revision, Date, Author
$History: $
File history, VSS format
$JustDate: $
Date, without the time addendum.
$Log: $
File history, RCS format
$Logfile: $
Same as Archive
$Modtime: $
Date and time of the last modification
$Revision: $
VSS Version number
$Workfile: $
File Name
$NoKeywords: $
No keyword expansion for all keywords that follow
Also about [how to add version tracking information to the *.cs file?] The article mentioned must use the vss6.0d version, after my test vss6.0c also supports the above function.