Compile a project with --standalone on the coreclr and the compiler crashes.
repro:
- dotnet new console -lang F#
- Edit the project file created and add to the propertygroup:
$(OtherFlags) --standalone
- dotnet build
Observe the build failure message:
c:\temp\foop>dotnet build
Microsoft (R) Build Engine version 15.5.178.35674 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for c:\temp\foop\foop.fsproj...
Generating MSBuild file c:\temp\foop\obj\foop.fsproj.nuget.g.props.
Generating MSBuild file c:\temp\foop\obj\foop.fsproj.nuget.g.targets.
Restore completed in 845.82 ms for c:\temp\foop\foop.fsproj.
FSC : error FS2014: A problem occurred writing the binary 'c:\temp\foop\obj\Debug\netcoreapp2.0\foop.dll': Error in pass3 for type Program, error: Error in GetMethodRefAsMethodDefIdx for mref = ("PrintFormatLine", "Microsoft.FSharp.Core.ExtraTopLevelOperators"), error: Exception of type 'Microsoft.FSharp.Compiler.AbstractIL.ILBinaryWriter+MethodDefNotFound' was thrown. [c:\temp\foop\foop.fsproj]
Build FAILED.
FSC : error FS2014: A problem occurred writing the binary 'c:\temp\foop\obj\Debug\netcoreapp2.0\foop.dll': Error in pass3 for type Program, error: Error in GetMethodRefAsMethodDefIdx for mref = ("PrintFormatLine", "Microsoft.FSharp.Core.ExtraTopLevelOperators"), error: Exception of type 'Microsoft.FSharp.Compiler.AbstractIL.ILBinaryWriter+MethodDefNotFound' was thrown. [c:\temp\foop\foop.fsproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:06.56
c:\temp\foop>
Expected:
build to succeed.
Compile a project with --standalone on the coreclr and the compiler crashes.
repro:
$(OtherFlags) --standalone
Observe the build failure message:
Expected:
build to succeed.