react-native-windows
react-native-windows copied to clipboard
upgrade managed codegen project to .net 6
Description
Upgrades the .net codegen project (currently using out-of-support .net core 3.1), to .net 6.
Type of Change
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update
Why
Upgrade from no-longer-supported version of .net
Resolves #5146
Microsoft Reviewers: Open in CodeFlow
After getting the build to "see" the .net 6 install (by using the UseDotNet@2
task), the build fails complaining that in order to use .net 6, we need MSBuild 17:
##[error]vnext\Microsoft.ReactNative.Managed.CodeGen\Microsoft.ReactNative.Managed.CodeGen.csproj(0,0): Error : Version 6.0.401 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current available version of MSBuild is 16.11.2.50704. Change the .NET SDK specified in global.json to an older version that requires the MSBuild version currently available.
So we'll need to park this until we can migrate to VS 2022. @jonthysell fyi.
Can we bump this just to .NET 5 for now, so it's easier to go to .NET 6 when the time comes?
@jonthysell Possibly, though .net 5 is already out of support