-
Notifications
You must be signed in to change notification settings - Fork 789
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
Question: running tests on .NET 5 #10576
Comments
Could you elaborate on what that means? The SDK is sadly pinned until internal build servers update. It always takes them a long time, sadly. |
I'm concerned that we've got no in-repo coverage of running our tests on .NET 5.0 SDK |
For example, FSharp.Formatting Adding a roll-forward to this tool in fsprojects/FSharp.Formatting#621 exposes a failure when running The underlying problem is that we are not running our FCS or FSI tests with resepect to the .NET 5.0 SDK. I assume FSI tests are done at SDK integration so it's likely fairly solid. But the FCS tests have to be done here. |
Okay, seems reasonable. This will likely have to wait for #10179 (and thus internal VMs). We'll likely just change the test target to |
It is feasible to add a 'simple' test run that doesn't use the MS infraastructure and uses public SDKs in a parallel way? I'm talking something like doing a simple |
Yes, I was wondering that. If FCS were outside this repo we could test on .NET 5.0 no problem today. Or we could add a GitHub action to do it. That would however add another CI gate. |
Yeah, it's feasible to add another run (like the |
We can't have a run that uses .NET 5, even unofficially, because .NET 5 requires MSBuild 16.8 which only comes with VS 16.8 which hasn't yet been deployed to all internal VMS. I just received, however, an internal email that the private VMS are being updated tomorrow morning, Pacific time, so as soon as I've confirmed that internal builds pass, I'll be able to merge #10179. |
Now that we build the repo with the .NET 5 SDK, we can also do testing against .NET 5. |
I'm trying to run FSharp.Compiler.Service.Tests on .NET 5, I thought all I'd need is this
netcoreapp3.1;net5.0
However this fails with the usual kind of weirdness we all expect from MSBuild, with rubbish about .NET Framework
I think this is because our global.json is pinning us to .NET SDK 3.1.302 and this toolchain doesn't know about .NET 5.
I'm concerned that we've got no in-repo coverage of running our tests. Also some tests like those for
GetProjectOptionsFromScript
and anything to do with F# Interactive are fundamentally sensitive to the .NET SDK we are connecting to to find default reference for F# scripts.This is related to #10575, where I was trying to add net5.0 testing for FSHarp.Compiler.Service.Tests.fsproj
The text was updated successfully, but these errors were encountered: