dotnet / dotnet/fsharp

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

Open
#8,509 1 comment 0 reactions 0 assignees View on GitHub
Area-Diagnostics Bug good first issue help wanted Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

--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:\
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.