Windows 10 x64. Visual Studio 2019 v16.6.1. Rider 2020.1.3.
Microsoft official documentation:
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. The default build number increments daily. The default revision number is the number of seconds since midnight local time (without taking into account time zone adjustments for daylight saving time), divided by 2.
I edited version info in my AssemblyInfo.cs
file:
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// 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.*")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.*")]
But if I rebuild my project by Rider IDE and check assembly version I see unexpected result:
If I try to do the same in Visual Studio 2019 v16.6.1 then I get compilation error even:
If I set Deterministic
to false
according this advice then compilation error doesn't happen but I get the same result:
Why does it happen? How can I fix it?