Skip to content
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

use 5.0 sdk #10179

Merged
merged 1 commit into from
Dec 2, 2020
Merged

use 5.0 sdk #10179

merged 1 commit into from
Dec 2, 2020

Conversation

brettfo
Copy link
Member

@brettfo brettfo commented Sep 23, 2020

Now that dotnet/runtime#40864 is fixed, we can directly consume the 5.0 SDK.

tl;dr

VS 16.8 is now required to build.

Long version

The 5.0 SDK requires MSBuild 16.8 which requires VS 16.8. The internal VMs have been updated.

Local run of .\build.cmd -testVs passes.

Internal build has passed.

@cartermp
Copy link
Contributor

It's annoying to install a preview, especially since it revs much faster than stable.

Luckily, it won't remain that way for long.

@brettfo
Copy link
Member Author

brettfo commented Sep 24, 2020

CI runs are failing on the assembly verifier calling AssemblyName.GetAssemblyName() on D:\a\1\s\artifacts\bin\Microsoft.FSharp.Compiler\Release\netcoreapp3.1\fsc.exe. Same issue can be reproduced locally with a C# console app trying to read that file.

I'll experiment a bit to see what's happening.

@KevinRansom
Copy link
Member

@brettfo the PE file clrheader is corrupt, I will see if I can figure out why.

@auduchinok
Copy link
Member

auduchinok commented Sep 24, 2020

VS 16.8 Preview is now required to build.

Do I get it right that it's only about the CI and VisualFSharp.sln, so FSharp.sln and FSharp.Compiler.Service.sln are going to be fine with dotnet build when #10151 is fixed?

@KevinRansom
Copy link
Member

@brettfo,

This is probably not a good thing, main branch needs to build on the RTM release ... this will require the preview release.

##vsotask.logissue type=error Developer Command Prompt for VS 16.0 is not recent enough. Please upgrade to 16.8 or build from a plain CMD window

@brettfo
Copy link
Member Author

brettfo commented Sep 24, 2020

@KevinRansom this change will require 16.8 preview to be installed on developer boxes and it should work on CI; I modeled global.json on Roslyn which also requires 16.8. Is the issue that the fsc.exe included in the MSBuild package is too old (and as a result writes a bad header)? If so we'll need to talk to @jaredpar about updating the F# in the xcopy-msbuild package (at least I think he's the one that updates that.)

@cartermp
Copy link
Contributor

Do I get it right that it's only about the CI and VisualFSharp.sln, so FSharp.sln and FSharp.Compiler.Service.sln are going to be fine with dotnet build when #10151 is fixed?

If VS is not used, then yes. It would require the .NET 5 SDK though.

@jaredpar
Copy link
Member

f so we'll need to talk to @jaredpar about updating the F# in the xcopy-msbuild package (at least I think he's the one that updates that.)

The most recent updates should support 16.8.

@brettfo brettfo mentioned this pull request Sep 25, 2020
@brettfo brettfo force-pushed the net50 branch 5 times, most recently from 178891e to 5a33b79 Compare September 29, 2020 19:48
@brettfo brettfo force-pushed the net50 branch 2 times, most recently from fecfb6e to 35c22a9 Compare November 13, 2020 01:08
@brettfo brettfo force-pushed the net50 branch 2 times, most recently from 5d9306a to 2e36ab2 Compare November 24, 2020 20:57
@brettfo brettfo changed the title [WIP] use 5.0 sdk use 5.0 sdk Nov 24, 2020
@brettfo brettfo changed the title use 5.0 sdk [WIP] use 5.0 sdk Nov 24, 2020
@brettfo brettfo changed the title [WIP] use 5.0 sdk use 5.0 sdk Dec 2, 2020
@KevinRansom KevinRansom merged commit 686fbda into dotnet:main Dec 2, 2020
@brettfo brettfo deleted the net50 branch December 2, 2020 21:12
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants