dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.89k stars 784 forks source link

--simpleresolution does something strange on coreclr version of F# compiler. #8509

Open KevinRansom opened 4 years ago

KevinRansom commented 4 years ago

--simpleresolution does something strange on coreclr version of F# compiler.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>dotnet "C:\Program Files\dotnet\sdk\3.0.102\FSharp\fsc.exe" c:\temp\foo\foo.fs --simpleresolution
Microsoft (R) F# Compiler version 10.6.0.0 for F# 4.7
Copyright (c) Microsoft Corporation. All Rights Reserved.

error FS0078: Unable to find the file 'mscorlib.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Xml.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Runtime.Remoting.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Runtime.Serialization.Formatters.Soap.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Data.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Drawing.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Core.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'netstandard.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Runtime.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Linq.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Reflection.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Linq.Expressions.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Threading.Tasks.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.IO.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Net.Requests.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Collections.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Runtime.Numerics.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Threading.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Web.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Web.Services.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Windows.Forms.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

error FS0078: Unable to find the file 'System.Numerics.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

unknown(1,1): error FS0078: Unable to find the file 'mscorlib.dll' in any of
 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
 C:\Program Files\dotnet\sdk\3.0.102\FSharp\

C:\
dsyme commented 2 years ago

This flag should not be supported on .NET Core and should give an appropriate diagnostic.

@vzarytovskii Labelling Up For Grabs as it's a good simple bug to fix for new contributors