Add version trace information to *.cs or *.vb files

Source: Internet
Author: User
Tags header
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.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.