微软知识库中的文章How To Increment Version Information After Each Build in Visual C++(http://support.microsoft.com/kb/237870/)提供了在VC6中自动增加版本号的方法。在VS.Net中,需要对这个宏进行少许的更改:http://www.thecodeproject.com/macro/IncBuildNrMacro.asp?df=100&forumid=49502&select=1008554#xx1008554xx。
也可以使用VS.NET插件来实现该功能,一个示例在下面的网址可以找到
An Automatic Build Number Incrementer for Visual Studio .NET
http://codeguru.earthweb.com/Csharp/.NET/net_vs_addins/article.php/c5961/
但是宏比插件更加灵活,更稳定,更便于修改和扩展。
Jiang,Sheng ,a Microsoft Most Valuable Professional of Visual C++, became a Visual C++ programmer at 1999. He actives on several online Visual C++ forums ,blogs and newsgroups
1/23/2005
在Visual C++中编译工程时自动增加版本号
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment