react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

upgrade managed codegen project to .net 6

Open asklar opened this issue 1 year ago • 1 comments

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

asklar avatar Sep 12 '22 01:09 asklar

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.

asklar avatar Sep 13 '22 20:09 asklar

Can we bump this just to .NET 5 for now, so it's easier to go to .NET 6 when the time comes?

jonthysell avatar Oct 06 '22 17:10 jonthysell

@jonthysell Possibly, though .net 5 is already out of support

asklar avatar Oct 06 '22 18:10 asklar