The compiler reports a warning when the value of AssemblyInformationalVersionAttribute is not a valid version string.
.NET SDK 2.1.300-rc1-008673
Repro:
> dotnet new classlib --language F#
Set value in the project:
<InformationalVersion>1.0.0+a1686e12e2b5dbbf0773de915f8b6039041dd4c1</InformationalVersion>
> dotnet build
...
FSC : warning FS2003: An System.Reflection.AssemblyInformationalVersionAttribute specified version '1.0.0+a1686e12e2b5dbbf0773de915f8b6039041dd4c1', but this value is invalid and has been ignored
The C# and VB compilers accept arbitrary values.
SourceLink package adds git commit sha to the version (format above).
The compiler reports a warning when the value of AssemblyInformationalVersionAttribute is not a valid version string.
.NET SDK 2.1.300-rc1-008673
Repro:
Set value in the project:
The C# and VB compilers accept arbitrary values.
SourceLink package adds git commit sha to the version (format above).