-
Notifications
You must be signed in to change notification settings - Fork 841
Move build to net 5.0 #11019
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
Move build to net 5.0 #11019
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -646,12 +646,13 @@ let main1OfAst | |
| rangeForErrors=range0) | ||
|
|
||
| let primaryAssembly = | ||
| // temporary workaround until https://github.com/dotnet/fsharp/pull/8043 is merged: | ||
| // pick a primary assembly based on the current runtime. | ||
| // It's an ugly compromise used to avoid exposing primaryAssembly in the public api for this function. | ||
| let isNetCoreAppProcess = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith ".NET Core" | ||
| if isNetCoreAppProcess then PrimaryAssembly.System_Runtime | ||
| else PrimaryAssembly.Mscorlib | ||
| // MsCorlib is a good default for all seasons... | ||
| // portable profiles and netstandard rely on System_Runtime but we need to do work to detect that scenario | ||
| let includesSystem_Runtime = dllReferences |> Seq.exists(fun f -> Path.GetFileName(f).Equals("system.runtime.dll",StringComparison.InvariantCultureIgnoreCase)) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vzarytovskii ,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yeah that makes sense. We were relying on tfm name/description. |
||
| if includesSystem_Runtime then | ||
| PrimaryAssembly.System_Runtime | ||
| else | ||
| PrimaryAssembly.Mscorlib | ||
|
|
||
| tcConfigB.target <- target | ||
| tcConfigB.primaryAssembly <- primaryAssembly | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brettfo , this was the main problem, the ci sets DOTNET_ROOT to a the global location. Here we set it to the local download location first, so that the local and global frameworks are selectable by dotnet.exe