I am trying to set the AssemblyVersion and AssemblyFileVersion attributes in my project like this:
[assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyFileVersion("3.0.*")]
but I get this warning:
CS1607: Generating an assembly. The version "3.0. *" Specified for the "file version" is not in the normal mode of 'major.minor.build.revision'
The AssemblyVersionAttribute Class page on MSDN states the following:
You can specify all values, or you can accept the default assembly number, revision number, or both with an asterisk (*). For example, [assembly: AssemblyVersion ("2.3.25.1")] indicates 2 as the major version, 3 as the minor version, 25 as the assembly number and 1 as the revision number. A version number such as [assembly: AssemblyVersion ("1.2. *")] Indicates 1 as the major version, 2 as the minor version, and accepts the standard assembly and revision numbers. A version number such as [assembly: AssemblyVersion ("1.2.15. *")] Indicates 1 as the major version, 2 as the minor version, 15 as the assembly number and accepts the default version number.
Pay attention to the bold section. Does anyone know why [assembly: AssemblyVersion("3.0.*")] (From my project) is invalid, but valid [assembly:AssemblyVersion("1.2.*")] (From the MSDN example)?
In particular, I am curious to know if I can start with a non-zero main number, since the application I am writing is version 3 of the program.
UPDATE →> Sorry, this sounds like an answer in another post ... Please vote to close it, thanks.
Sheridan Mar 19 '13 at 16:59 2013-03-19 16:59
source share