It says in AssemblyInfo.cs for C# projects that it\'s possible to specify version information with *
// Version information for an assembly cons
Syntax (see MSDN) for "automatic" build number can be:
[assembly: AssemblyVersion("1.0.0.*")]
or:
[assembly: AssemblyVersion("1.0.*")]
* means after this everything is automatic. You can't have automatic build number and fixed revision number then this syntax isn't correct:
[assembly: AssemblyVersion("1.0.*.0")]
For the AssemblyFileVersionAttribute
you cannot use the * special character so you have to provide a full and valid version number. Please note that if you do not provide an AssemblyFileVersionAttribute
then you'll get the right FileVersionInfo
automatically (with the same version of AssemblyVersionAttribute
). You need to specify that attribute only if you need to set a different version.