
Autoincrement revision number ?
Quote:
> You can do this via the AssemblyVersion attribute. See AssemblyInfo.vb
> in your .NET project.
> ' You can specify all the values or you can default the Build and
> Revision Numbers
> ' by using the '*' as shown below:
> <Assembly: AssemblyVersion("1.0.*")>
Jeffrey Richter, in his book, "Applied Microsoft .Net Framework
Programming", warns not to use the "1.0.*" syntax. He recommends that the
build number be specifically set to a value. In regards to the automatic
increment of the build number he states:
<QUOTE>
This feature is a bug and shouldn't be used because changing the assembly
version number will break any assemblies that reference this assembly. The
AssemblyInfo.cs file that Visual Studio .Net automatically creates for you
when you create a new project is in error: it sets the AssemblyVersion
attribute so that its major and minor parts are 1.0 and that the build and
revision parts are automatically updated by the compiler. You should
definitely modify this file and hard-code all four parts of the assembly
version number.
</QUOTE>
His book talks about versioning information in detail.
Chris
--
If you don't like lunchmeat, please remove it from my e-mail address to
send me an e-mail