I am trying to set my AssemblyVersion
and AssemblyFileVersion
attributes in my project like so:
[assembly: AssemblyVersion("3.0.*")]
[assembly: AssemblyFileVersion("3.0.*")]
but I get this warning:
CS1607: Assembly generation -- The version '3.0.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format
On the AssemblyVersionAttribute Class
page at MSDN is the following:
You can specify all the values or you can accept the default build number, revision number, or both by using an asterisk (*). For example, [assembly:AssemblyVersion("2.3.25.1")] indicates 2 as the major version, 3 as the minor version, 25 as the build number, and 1 as the revision number. A version number such as [assembly:AssemblyVersion("1.2.*")] specifies 1 as the major version, 2 as the minor version, and accepts the default build and revision numbers. A version number such as [assembly:AssemblyVersion("1.2.15.*")] specifies 1 as the major version, 2 as the minor version, 15 as the build number, and accepts the default revision number.
Note the bold section. Does anyone know why [assembly: AssemblyVersion("3.0.*")]
(from my project) is not valid, but [assembly:AssemblyVersion("1.2.*")]
(from the MSDN example) is valid?
In particular, I am curious to know if I can start with a non-zero major number, as the application that I am writing is version 3 of the program.
UPDATE >>> Sorry, this does seem to be answered in the other post... please vote to close it, thanks.