Add edition related information to *.CS with vss.

Today I found out a method that can add the related information to *.CS with sourcesafe vss;

In general, we use Vss to control source codes in the team work, If we can see the edition information with *.CS, can give convenience to check *.cs's edition.

Here I give out the steps to open this doohickey:

1. open "visual sourcesafe explorer"->"options"->"local files", then check on the option "copy keyword-expaned files into working folder".

2. open "visual sourcesafe administrator"->"options", then add "*.cs;*.html;*.htm;*.aspx" to option "expand keywords in files of type".Space with ":".

3. according to the below reference information about the macro of VSS, then add what you want to the top of *.cs, format as:

/*
$Author$
$Archive $
*/
 

=======Reference macro============
$Archive $
 VSS archive file location
 
$Author$
 User who last changed the file
 
$Date $
 Date and time of 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 last modification
 
$Revision $
 VSS version number
 
$Workfile$
 File name
 
$NoKeywords $
 No keyword expansion for all keywords that follow
 



 

posted @ 2005-04-05 13:28  23热爱,自学业余码农。  阅读(298)  评论(0)    收藏  举报