PreRelase versions cause warnings (and failed builds when treated as errors)
dustinmoris opened this issue · comments
Dustin Moris Gorski commented
Steps to reproduce:
dotnet new --type=lib --lang=fsharp
dotnet restore
dotnet build
After that I change in the default project.json
file the version from 1.0.0-*
to 1.0.0-alpha-*
and run dotnet build
again:
Project New folder (.NETStandard,Version=v1.6) will be compiled because expected outputs are missing
Compiling New folder for .NETStandard,Version=v1.6
C:\GitHub\New folder\warning FS2003: An System.Reflection.AssemblyInformationalVersionAttribute specified version '1.0.0-alpha', but this value is invalid and has been ignored
Compilation succeeded.
1 Warning(s)
0 Error(s)
Time elapsed 00:00:04.8871572
.NET Core version
C:\GitHub\New folder>dotnet --version
1.0.0-preview2-003156
The warning is wrong, because 1.0.0-alpha-* should be a valid version, right?
Enrico Sada commented
closing as project.json
based is deprecated in favore of 1.0 sdk (msbuild based)
this is fixed in msbuild based 1.0.x sdk