diff --git a/.ado/image/rnw-img-vs2022-node18.json b/.ado/image/rnw-img-vs2022-node18.json index d33b38fcf9a..1fa6cce06d2 100644 --- a/.ado/image/rnw-img-vs2022-node18.json +++ b/.ado/image/rnw-img-vs2022-node18.json @@ -61,6 +61,12 @@ "parameters": { "DotNetCoreVersion": "6.0.403" } + }, + { + "name": "windows-dotnetcore-sdk", + "parameters": { + "DotNetCoreVersion": "8.0.413" + } } ] -} +} \ No newline at end of file diff --git a/change/@react-native-windows-cli-8af3b340-b959-4154-9057-6ec040e82150.json b/change/@react-native-windows-cli-8af3b340-b959-4154-9057-6ec040e82150.json new file mode 100644 index 00000000000..3aa90d3de07 --- /dev/null +++ b/change/@react-native-windows-cli-8af3b340-b959-4154-9057-6ec040e82150.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "upgrade to dotnet8", + "packageName": "@react-native-windows/cli", + "email": "10109130+sharath2727@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-87037c9a-0b79-4a87-a88a-d99aa9e181c3.json b/change/react-native-windows-87037c9a-0b79-4a87-a88a-d99aa9e181c3.json new file mode 100644 index 00000000000..c64fb6efa99 --- /dev/null +++ b/change/react-native-windows-87037c9a-0b79-4a87-a88a-d99aa9e181c3.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "upgrade to dotnet8", + "packageName": "react-native-windows", + "email": "10109130+sharath2727@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts b/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts index a45db4ee028..d35e769f483 100644 --- a/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts +++ b/packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts @@ -14,5 +14,5 @@ export const HealthCheckList = [ [true, 'VSUWP', 'Visual Studio 2022 (>= 17.11.0) & req. components'], [true, 'Node', 'Node.js (LTS, >= 18.18)'], [true, 'Yarn', 'Yarn'], - [true, 'DotNetCore', '.NET SDK (LTS, = 6.0)'], + [true, 'DotNetCore', '.NET SDK (LTS, = 8.0)'], ]; diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj index 1ff94378ea5..8d5b5fa22a1 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 x64 win-x64 false diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json index a6f8253b027..b30300df4cc 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net6.0": { + "net8.0": { "coverlet.collector": { "type": "Direct", "requested": "[3.1.2, )", @@ -1610,7 +1610,7 @@ } } }, - "net6.0/win-x64": { + "net8.0/win-x64": { "Microsoft.Win32.Primitives": { "type": "Transitive", "resolved": "4.3.0", diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj index 47a02c0f43f..6b18c3aeecb 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj @@ -3,7 +3,7 @@ Exe - net6.0 + net8.0 x64;x86;ARM64 win-x86;win-x64 diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml index 1fbe6792278..c6c28996632 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml @@ -6,7 +6,7 @@ FileSystem Debug x64 - net6.0 + net8.0 $(OutDir)publish win-x64 true diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml index db7d34845e9..373853ddc0e 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml @@ -6,7 +6,7 @@ FileSystem Release x64 - net6.0 + net8.0 $(OutDir)publish win-x64 true diff --git a/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json b/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json index 88fa3e2a9ab..6854d1fe363 100644 --- a/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json +++ b/vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - "net6.0": { + "net8.0": { "Humanizer": { "type": "Direct", "requested": "[2.14.1, )", @@ -1507,7 +1507,7 @@ } } }, - "net6.0/win-x64": { + "net8.0/win-x64": { "Microsoft.Win32.Primitives": { "type": "Transitive", "resolved": "4.3.0", @@ -2350,7 +2350,7 @@ } } }, - "net6.0/win-x86": { + "net8.0/win-x86": { "Microsoft.Win32.Primitives": { "type": "Transitive", "resolved": "4.3.0", diff --git a/vnext/Scripts/rnw-dependencies.ps1 b/vnext/Scripts/rnw-dependencies.ps1 index c1c6a6952d5..b429d02aa02 100644 --- a/vnext/Scripts/rnw-dependencies.ps1 +++ b/vnext/Scripts/rnw-dependencies.ps1 @@ -88,9 +88,9 @@ $wingetver = "1.7.11261"; $vsver = "17.11.0"; # The exact .NET SDK version to check for -$dotnetver = "6.0"; +$dotnetver = "8.0"; # Version name of the winget package -$wingetDotNetVer = "6"; +$wingetDotNetVer = "8"; $v = [System.Environment]::OSVersion.Version; if ($env:Agent_BuildDirectory) {