Automatically update version number

前端 未结 7 1344
南笙
南笙 2020-11-28 02:33

I would like the version property of my application to be incremented for each build but I\'m not sure on how to enable this functionality in Visual Studio (2005/2008). I ha

相关标签:
7条回答
  • 2020-11-28 03:11

    Some time ago I wrote a quick and dirty exe that would update the version #'s in an assemblyinfo.{cs/vb} - I also have used rxfind.exe (a simple and powerful regex-based search replace tool) to do the update from a command line as part of the build process. A couple of other helpfule hints:

    1. separate the assemblyinfo into product parts (company name, version, etc.) and assembly specific parts (assembly name etc.). See here
    2. Also - i use subversion, so I found it helpful to set the build number to subversion revision number thereby making it really easy to always get back to the codebase that generated the assembly (e.g. 1.4.100.1502 was built from revision 1502).
    0 讨论(0)
提交回复
热议问题