积极答复者
请教一个版块控制和VS的问题?

问题
-
在VS开发中,每个代码页面的头部一般都会有
//-----------------------------------------------------------------------------------------------
// <copyright file="Test.cs" company="Company Name">
// Copyright (c) Company Name. All rights reserved.
// </copyright>
// <author>RogerChen</author>
// <date>2009/03/03</date>
// <latestAuthor>RogerChen</latestAuthor>
// <latestDate>2009/03/03</latestDate >
// <description>File Description</ description >
//-----------------------------------------------------------------------------------------------
这样的说明,我想问的问题是有没有办法,让这个文件在VS环境中Chcek In的时候,自动把<latestAuthor>RogerChen</latestAuthor>
<latestDate>2009/03/03</latestDate >
红色部分的内容改成当前时间和修改这个文件的用户名称,(如果集成VSS开发的话,修改自动是VSS的那个账户)
不断挑战自我
答案
全部回复
-
在问一个问题,关键字除了:
- $Archive: $
-
Specifies the Visual SourceSafe archive file location.
- $Author: $
-
Specifies the user who last changed the file.
- $Date: $
-
Specifies the date and time of the last check-in.
- $Header: $
-
Specifies a header in the form: Logfile, Revision, Date, Author.
- $History: $
-
Specifies file history in Visual SourceSafe format.
- $JustDate: $
-
Specifies a simple date, without a time.
- $Log: $
-
Specifies a file history in RCS format.
- $Logfile: $
-
Same as Archive keyword.
- $Modtime: $
-
Specifies the date and time of the last modification.
- $Revision: $
-
Specifies a Visual SourceSafe version number.
- $Workfile: $
-
Specifies the file name.
- $NoKeywords: $
-
Specifies that there is no keyword expansion for all keywords that follow.
- 关键字除了这些,还有其他的没有,是否能自己定义,比如我想定义文件的创建时间,创建人。在Add的到Vss中的时候自动记录。
-
不断挑战自我