|
| 1 | +From b6100609c16295746b0c875494d5d66dabe35560 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Viktor Hofer < [email protected]> |
| 3 | +Date: Wed, 6 Nov 2024 16:43:26 +0000 |
| 4 | +Subject: [PATCH] Update to .NET 10 SDK and TFM to net10.0 in arcade |
| 5 | + |
| 6 | +Backport: https://github.com/dotnet/arcade/pull/15221 |
| 7 | +--- |
| 8 | + Directory.Build.props | 5 +++++ |
| 9 | + global.json | 4 ++-- |
| 10 | + .../src/build/Packaging.targets | 4 ++++ |
| 11 | + .../Sdk/tools/xunit-runner/XUnitRunner.targets | 2 +- |
| 12 | + .../Microsoft.DotNet.XliffTasks.csproj | 4 ---- |
| 13 | + 5 files changed, 12 insertions(+), 7 deletions(-) |
| 14 | + |
| 15 | +diff --git a/Directory.Build.props b/Directory.Build.props |
| 16 | +index 9d84f1dc6..b25de0091 100644 |
| 17 | +--- a/Directory.Build.props |
| 18 | ++++ b/Directory.Build.props |
| 19 | +@@ -16,6 +16,11 @@ |
| 20 | + <RepositoryUrl>https://github.com/dotnet/arcade</RepositoryUrl> |
| 21 | + <!-- Only upgrade NuGetAudit warnings to errors for official builds. --> |
| 22 | + <WarningsNotAsErrors Condition="'$(OfficialBuild)' != 'true'">$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors> |
| 23 | ++ <!-- TODO: Remove when Arcade SDK updated TargetFrameworkDefaults.props for .NET 10. --> |
| 24 | ++ <NetCurrent>net10.0</NetCurrent> |
| 25 | ++ <NetPrevious>net9.0</NetPrevious> |
| 26 | ++ <NetToolCurrent>$(NetCurrent)</NetToolCurrent> |
| 27 | ++ <NetToolMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetToolCurrent)</NetToolMinimum> |
| 28 | + </PropertyGroup> |
| 29 | + |
| 30 | + </Project> |
| 31 | +diff --git a/global.json b/global.json |
| 32 | +index 3a7409606..3054e30d7 100644 |
| 33 | +--- a/global.json |
| 34 | ++++ b/global.json |
| 35 | +@@ -1,10 +1,10 @@ |
| 36 | + { |
| 37 | + "sdk": { |
| 38 | +- "version": "9.0.100-rc.2.24474.11", |
| 39 | ++ "version": "10.0.100-alpha.1.24551.9", |
| 40 | + "rollForward": "latestFeature" |
| 41 | + }, |
| 42 | + "tools": { |
| 43 | +- "dotnet": "9.0.100-rc.2.24474.11" |
| 44 | ++ "dotnet": "10.0.100-alpha.1.24551.9" |
| 45 | + }, |
| 46 | + "msbuild-sdks": { |
| 47 | + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.24530.1", |
| 48 | +diff --git a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets |
| 49 | +index b94b6736d..e0fadabb2 100644 |
| 50 | +--- a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets |
| 51 | ++++ b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets |
| 52 | +@@ -954,6 +954,10 @@ |
| 53 | + <DefaultValidateFramework Include="net9.0"> |
| 54 | + <RuntimeIDs>@(NETCoreApp90RIDs)</RuntimeIDs> |
| 55 | + </DefaultValidateFramework> |
| 56 | ++ <NETCoreApp100RIDs Condition="'@(NETCoreApp100RIDs)' == ''" Include="@(NETCoreApp90RIDs)" /> |
| 57 | ++ <DefaultValidateFramework Include="net10.0"> |
| 58 | ++ <RuntimeIDs>@(NETCoreApp100RIDs)</RuntimeIDs> |
| 59 | ++ </DefaultValidateFramework> |
| 60 | + |
| 61 | + <NETCore50RIDs Condition="'@(NETCore50RIDs)' == ''" Include="win10-x86;win10-x86-aot;win10-x64;win10-x64-aot;win10-arm;win10-arm-aot" /> |
| 62 | + <DefaultValidateFramework Include="netcore50"> |
| 63 | +diff --git a/src/Microsoft.DotNet.Helix/Sdk/tools/xunit-runner/XUnitRunner.targets b/src/Microsoft.DotNet.Helix/Sdk/tools/xunit-runner/XUnitRunner.targets |
| 64 | +index 0ae8d1482..9312e2672 100644 |
| 65 | +--- a/src/Microsoft.DotNet.Helix/Sdk/tools/xunit-runner/XUnitRunner.targets |
| 66 | ++++ b/src/Microsoft.DotNet.Helix/Sdk/tools/xunit-runner/XUnitRunner.targets |
| 67 | +@@ -2,7 +2,7 @@ |
| 68 | + <Project> |
| 69 | + |
| 70 | + <PropertyGroup> |
| 71 | +- <XUnitPublishTargetFramework Condition="'$(XUnitPublishTargetFramework)' == ''">net9.0</XUnitPublishTargetFramework> |
| 72 | ++ <XUnitPublishTargetFramework Condition="'$(XUnitPublishTargetFramework)' == ''">net10.0</XUnitPublishTargetFramework> |
| 73 | + <XUnitRuntimeTargetFramework Condition="'$(XUnitRuntimeTargetFramework)' == ''">netcoreapp2.0</XUnitRuntimeTargetFramework> |
| 74 | + |
| 75 | + <XUnitRunnerVersion Condition="'$(XUnitRunnerVersion)' == ''">2.9.2</XUnitRunnerVersion> |
| 76 | +diff --git a/src/Microsoft.DotNet.XliffTasks/Microsoft.DotNet.XliffTasks.csproj b/src/Microsoft.DotNet.XliffTasks/Microsoft.DotNet.XliffTasks.csproj |
| 77 | +index 1059c3bc4..165a4a7d5 100644 |
| 78 | +--- a/src/Microsoft.DotNet.XliffTasks/Microsoft.DotNet.XliffTasks.csproj |
| 79 | ++++ b/src/Microsoft.DotNet.XliffTasks/Microsoft.DotNet.XliffTasks.csproj |
| 80 | +@@ -1,10 +1,6 @@ |
| 81 | + <Project Sdk="Microsoft.NET.Sdk"> |
| 82 | + |
| 83 | + <PropertyGroup> |
| 84 | +- <!-- |
| 85 | +- We need to target net8.0 while Arcade SDK 8 is being used. |
| 86 | +- Xliff tasks were moved from dotnet/xliff-tasks to Arcade in V9, so they are not available in release/8.0 branch. |
| 87 | +- --> |
| 88 | + <TargetFrameworks>$(NetToolMinimum);$(NetFrameworkToolCurrent)</TargetFrameworks> |
| 89 | + <IsPackable>true</IsPackable> |
| 90 | + <IsBuildTaskProject>true</IsBuildTaskProject> |
0 commit comments