-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Remove MinimalSampleFSharp.fsproj from sln #32144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also tagging @cartermp @KevinRansom @brettfo @TIHan |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
That is super weird. Which VS version does this repro in? Can take a look |
Well, the repo requires a .NET 6 repo, and uses a repo local version (because it installs specific builds of the .NET Runtime too, and wants to be able to do that without admin privs. Using |
@Pilchie , I dug into it a lot deeper last night, asp.net is obviously doing the right thing. F# obviously has a bug. The net5.0 is a red-herring. The F# Compiler has always done a thing that is pretty icky, that Roslyn doesn't really do. It was originally done for usability reasons to make the command line compile easy for developers to manage when typing When we originally did the coreclr port of fsc this behavior was omitted, but over time, much of it has crept back in. The F# compiler tries to acquire the framework assemblies at the start in order to do that it has a bunch of horrible probing code. The xcopied coreclr + global.json scenario is just not consistently and well followed by fsc.exe and fsi.exe What is going wrong in the case shown above is actually two bugs.
So in short ... F# is buggy in the presence of an xcopied netsdk and global.json file. |
If you try to build MinimalSampleFsharp from within VS, you'll see the following error:
It
dotnet run
s just fine for me. @dotnet/aspnet-build any ideas other than just removing it from the sln?