Skip to content

Commit 7c73e0c

Browse files
Upgrade dotnet version (#15143)
* Upgrade dotnet version * Change files * Update dotnet version * nuget restore * Updated rnw-dependencies script * Ran vnext\Scripts\NuGetRestoreForceEvaluateAllSolutions.ps1 * Restore nugets * one more update * update node tests * Change files --------- Co-authored-by: Jon Thysell <[email protected]>
1 parent 6144274 commit 7c73e0c

File tree

10 files changed

+26
-12
lines changed

10 files changed

+26
-12
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Upgrade dotnet version",
4+
"packageName": "@react-native-windows/cli",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Upgrade dotnet version",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export const HealthCheckList = [
1414
[true, 'VSUWP', 'Visual Studio 2022 (>= 17.11.0) & req. components'],
1515
[true, 'Node', 'Node.js (LTS, >= 22.0)'],
1616
[true, 'Yarn', 'Yarn'],
17-
[true, 'DotNetCore', '.NET SDK (LTS, = 6.0)'],
17+
[true, 'DotNetCore', '.NET SDK (LTS, = 8.0)'],
1818
];

vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/Microsoft.ReactNative.Managed.CodeGen.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<PlatformTarget>x64</PlatformTarget>
66
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
77
<IsPackable>false</IsPackable>

vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/packages.lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 1,
33
"dependencies": {
4-
"net6.0": {
4+
"net8.0": {
55
"coverlet.collector": {
66
"type": "Direct",
77
"requested": "[3.1.2, )",
@@ -1610,7 +1610,7 @@
16101610
}
16111611
}
16121612
},
1613-
"net6.0/win-x64": {
1613+
"net8.0/win-x64": {
16141614
"Microsoft.Win32.Primitives": {
16151615
"type": "Transitive",
16161616
"resolved": "4.3.0",

vnext/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55

6-
<TargetFramework>net6.0</TargetFramework>
6+
<TargetFramework>net8.0</TargetFramework>
77
<Platforms>x64;x86;ARM64</Platforms>
88
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
99

vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PublishProtocol>FileSystem</PublishProtocol>
77
<Configuration>Debug</Configuration>
88
<Platform>x64</Platform>
9-
<TargetFramework>net6.0</TargetFramework>
9+
<TargetFramework>net8.0</TargetFramework>
1010
<PublishDir>$(OutDir)publish</PublishDir>
1111
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1212
<SelfContained>true</SelfContained>

vnext/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PublishProtocol>FileSystem</PublishProtocol>
77
<Configuration>Release</Configuration>
88
<Platform>x64</Platform>
9-
<TargetFramework>net6.0</TargetFramework>
9+
<TargetFramework>net8.0</TargetFramework>
1010
<PublishDir>$(OutDir)publish</PublishDir>
1111
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1212
<SelfContained>true</SelfContained>

vnext/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 1,
33
"dependencies": {
4-
"net6.0": {
4+
"net8.0": {
55
"Humanizer": {
66
"type": "Direct",
77
"requested": "[2.14.1, )",
@@ -1507,7 +1507,7 @@
15071507
}
15081508
}
15091509
},
1510-
"net6.0/win-x64": {
1510+
"net8.0/win-x64": {
15111511
"Microsoft.Win32.Primitives": {
15121512
"type": "Transitive",
15131513
"resolved": "4.3.0",
@@ -2350,7 +2350,7 @@
23502350
}
23512351
}
23522352
},
2353-
"net6.0/win-x86": {
2353+
"net8.0/win-x86": {
23542354
"Microsoft.Win32.Primitives": {
23552355
"type": "Transitive",
23562356
"resolved": "4.3.0",

vnext/Scripts/rnw-dependencies.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ $wingetver = "1.7.11261";
8888
$vsver = "17.11.0";
8989

9090
# The exact .NET SDK version to check for
91-
$dotnetver = "6.0";
91+
$dotnetver = "8.0";
9292
# Version name of the winget package
93-
$wingetDotNetVer = "6";
93+
$wingetDotNetVer = "8";
9494

9595
$v = [System.Environment]::OSVersion.Version;
9696
if ($env:Agent_BuildDirectory) {

0 commit comments

Comments
 (0)