diff --git a/Directory.Build.props b/Directory.Build.props
index 1a06b84dc3af..9552cf270487 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -34,7 +34,9 @@
true
false
- net9.0
+ net10.0
+
+ net10.0
$(SdkTargetFramework)
net8.0
diff --git a/eng/restore-toolset.ps1 b/eng/restore-toolset.ps1
index 4f31a110404b..283f65ac162f 100644
--- a/eng/restore-toolset.ps1
+++ b/eng/restore-toolset.ps1
@@ -18,6 +18,7 @@ function InitializeCustomSDKToolset {
InstallDotNetSharedFramework "6.0.0"
InstallDotNetSharedFramework "7.0.0"
InstallDotNetSharedFramework "8.0.0"
+ InstallDotNetSharedFramework "9.0.0-rc.2.24473.5"
CreateBuildEnvScripts
CreateVSShortcut
diff --git a/eng/restore-toolset.sh b/eng/restore-toolset.sh
index 9ab343671b9d..a6b9428cfd17 100755
--- a/eng/restore-toolset.sh
+++ b/eng/restore-toolset.sh
@@ -24,6 +24,7 @@ function InitializeCustomSDKToolset {
InstallDotNetSharedFramework "6.0.0"
InstallDotNetSharedFramework "7.0.0"
InstallDotNetSharedFramework "8.0.0"
+ InstallDotNetSharedFramework "9.0.0-rc.2.24473.5"
CreateBuildEnvScript
}
diff --git a/global.json b/global.json
index 294a9257894d..abe4dede2794 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"tools": {
- "dotnet": "9.0.100-rc.2.24474.11",
+ "dotnet": "10.0.100-alpha.1.24551.9",
"runtimes": {
"dotnet": [
"$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"
diff --git a/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets b/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets
index e4a66855ffc7..8a429ecb4f95 100644
--- a/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets
+++ b/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets
@@ -27,10 +27,10 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildThisFileDirectory)..\
- <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net10.0
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' != 'Core'">net472
<_BlazorWebAssemblySdkTasksAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\$(_BlazorWebAssemblySdkTasksTFM)\Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll
- <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net9.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll
+ <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net10.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll
diff --git a/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets b/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets
index bfa21662ae57..ffd2cb044182 100644
--- a/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets
+++ b/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets
@@ -27,10 +27,10 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildThisFileDirectory)..\
- <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net10.0
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' != 'Core'">net472
<_BlazorWebAssemblySdkTasksAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\$(_BlazorWebAssemblySdkTasksTFM)\Microsoft.NET.Sdk.BlazorWebAssembly.Tasks.dll
- <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net9.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll
+ <_BlazorWebAssemblySdkToolAssembly>$(BlazorWebAssemblySdkDirectoryRoot)tools\net10.0\Microsoft.NET.Sdk.BlazorWebAssembly.Tool.dll
diff --git a/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net9.0/PublicAPI.Shipped.txt b/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net10.0/PublicAPI.Shipped.txt
similarity index 100%
rename from src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net9.0/PublicAPI.Shipped.txt
rename to src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net10.0/PublicAPI.Shipped.txt
diff --git a/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net9.0/PublicAPI.Unshipped.txt b/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net10.0/PublicAPI.Unshipped.txt
similarity index 100%
rename from src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net9.0/PublicAPI.Unshipped.txt
rename to src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net10.0/PublicAPI.Unshipped.txt
diff --git a/src/Containers/packaging/build/Microsoft.NET.Build.Containers.props b/src/Containers/packaging/build/Microsoft.NET.Build.Containers.props
index 4abb098d7c82..22ec95911a7b 100644
--- a/src/Containers/packaging/build/Microsoft.NET.Build.Containers.props
+++ b/src/Containers/packaging/build/Microsoft.NET.Build.Containers.props
@@ -3,7 +3,7 @@
true
tasks
- net9.0
+ net10.0
net472
containerize
diff --git a/src/Installer/redist-installer/targets/Crossgen.targets b/src/Installer/redist-installer/targets/Crossgen.targets
index a516c49a0a58..11eff6d9fefb 100644
--- a/src/Installer/redist-installer/targets/Crossgen.targets
+++ b/src/Installer/redist-installer/targets/Crossgen.targets
@@ -34,13 +34,13 @@
no that we do not silently miss cross-genning some bits. When a TFM for a tool is updated,
update its path explicitly. If all TFMs match, update DefaultToolTfm -->
- net9.0
+ net10.0
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk\tools\$(DefaultToolTfm)\
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.BlazorWebAssembly\tools\$(DefaultToolTfm)\
$(SdkOutputDirectory)Sdks\NuGet.Build.Tasks.Pack\CoreCLR\
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.Razor\tasks\$(DefaultToolTfm)\
- $(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.WindowsDesktop\tools\$(DefaultToolTfm)\
+ $(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.WindowsDesktop\tools\net9.0\
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.Publish\tools\$(DefaultToolTfm)\
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.Web\tools\$(DefaultToolTfm)\
$(SdkOutputDirectory)Sdks\Microsoft.NET.Sdk.Web.ProjectSystem\tools\$(DefaultToolTfm)\
diff --git a/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets b/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets
index 3414f6e42983..6d9b3fa9307c 100644
--- a/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets
+++ b/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets
@@ -30,7 +30,7 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildThisFileDirectory)..\
$(RazorSdkDirectoryRoot)tasks\
- <_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net10.0
<_RazorSdkTasksTFM Condition=" '$(_RazorSdkTasksTFM)' == ''">net472
$(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll
<_RazorSdkToolAssembly>$(RazorSdkDirectoryRoot)tools\rzc.dll
diff --git a/src/SourceBuild/content/Directory.Build.props b/src/SourceBuild/content/Directory.Build.props
index 4de35bc0d0a9..bd5b2045f5e9 100644
--- a/src/SourceBuild/content/Directory.Build.props
+++ b/src/SourceBuild/content/Directory.Build.props
@@ -110,7 +110,7 @@
$(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\
- net9.0
+ net10.0
diff --git a/src/SourceBuild/content/eng/Versions.props b/src/SourceBuild/content/eng/Versions.props
index 568c827fa96b..3c1ecf771c32 100644
--- a/src/SourceBuild/content/eng/Versions.props
+++ b/src/SourceBuild/content/eng/Versions.props
@@ -25,7 +25,7 @@
-->
9.0.100-rc.2.24474.1
9.0.100-rc.2.24474.1
- 0.1.0-10.0.100-1
+ 0.1.0-10.0.100-4
2.0.0-beta4.24126.1
diff --git a/src/SourceBuild/content/global.json b/src/SourceBuild/content/global.json
index d92314a11e8a..4e561f406eb9 100644
--- a/src/SourceBuild/content/global.json
+++ b/src/SourceBuild/content/global.json
@@ -1,6 +1,6 @@
{
"tools": {
- "dotnet": "9.0.100-rc.2.24474.11"
+ "dotnet": "10.0.100-alpha.1.24551.9"
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.7.0",
diff --git a/src/SourceBuild/content/repo-projects/runtime.proj b/src/SourceBuild/content/repo-projects/runtime.proj
index d91903a39d0a..f88df5407a35 100644
--- a/src/SourceBuild/content/repo-projects/runtime.proj
+++ b/src/SourceBuild/content/repo-projects/runtime.proj
@@ -25,6 +25,9 @@
$(BuildArgs) /p:DotNetBuildMonoBundleLLVMOptimizer=$(DotNetBuildMonoBundleLLVMOptimizer)
$(BuildArgs) $(FlagParameterPrefix)pgoinstrument
$(BuildArgs) /p:UseSystemLibs=$(UseSystemLibs)
+
+
+ $(BuildArgs) /p:NetCoreAppToolCurrentVersion=10.0
diff --git a/src/SourceBuild/content/test/Directory.Build.props b/src/SourceBuild/content/test/Directory.Build.props
index 12ee09caa8c7..d58fb72b0678 100644
--- a/src/SourceBuild/content/test/Directory.Build.props
+++ b/src/SourceBuild/content/test/Directory.Build.props
@@ -10,6 +10,9 @@
enable
$(ArtifactsTestResultsDir)
+
+ Major
diff --git a/src/SourceBuild/content/test/Microsoft.DotNet.UnifiedBuild.Tests/Microsoft.DotNet.UnifiedBuild.Tests.csproj b/src/SourceBuild/content/test/Microsoft.DotNet.UnifiedBuild.Tests/Microsoft.DotNet.UnifiedBuild.Tests.csproj
index 03c03aeb540f..78e0ab8f338a 100644
--- a/src/SourceBuild/content/test/Microsoft.DotNet.UnifiedBuild.Tests/Microsoft.DotNet.UnifiedBuild.Tests.csproj
+++ b/src/SourceBuild/content/test/Microsoft.DotNet.UnifiedBuild.Tests/Microsoft.DotNet.UnifiedBuild.Tests.csproj
@@ -5,7 +5,7 @@
$(DefaultExcludesInProjectFolder);assets/**/*
true
console%3bverbosity=diagnostic;trx%3bverbosity=diagnostic%3bLogFileName=$(MSBuildProjectName).trx
- $(VSTestCLIRunSettings);RunConfiguration.DotNetHostPath=$(DotnetTool)
+ $(VSTestCLIRunSettings);RunConfiguration.DotNetHostPath=$(DotNetTool)
diff --git a/src/SourceBuild/patches/arcade/0001-Update-workaround-for-STJ-8.0.0.4-version.patch b/src/SourceBuild/patches/arcade/0001-Update-workaround-for-STJ-8.0.0.4-version.patch
new file mode 100644
index 000000000000..60e82df3399f
--- /dev/null
+++ b/src/SourceBuild/patches/arcade/0001-Update-workaround-for-STJ-8.0.0.4-version.patch
@@ -0,0 +1,24 @@
+From c0c75f6fa385d6959cc2c7c475c01208f9f30830 Mon Sep 17 00:00:00 2001
+From: Viktor Hofer
+Date: Tue, 5 Nov 2024 13:37:06 +0100
+Subject: [PATCH] Update workaround for STJ 8.0.0.4 version
+
+Backport: https://github.com/dotnet/arcade/pull/15218
+
+---
+ src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets
+index 492130d40..bae31b868 100644
+--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets
++++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets
+@@ -197,7 +197,7 @@
+
+Date: Tue, 5 Nov 2024 14:53:29 +0000
+Subject: [PATCH] Update SDK and remove net10 workaround
+
+Backport: https://github.com/dotnet/windowsdesktop/pull/4763
+
+---
+ Directory.Build.props | 2 +-
+ Directory.Build.targets | 18 ------------------
+ global.json | 2 +-
+ .../src/sfx/Directory.Build.targets | 12 ++++++++++++
+ 4 files changed, 14 insertions(+), 20 deletions(-)
+
+diff --git a/Directory.Build.props b/Directory.Build.props
+index 09e49d41..daf75b2f 100644
+--- a/Directory.Build.props
++++ b/Directory.Build.props
+@@ -26,7 +26,7 @@
+
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904
+
+-
++
+ net10.0
+
+
+diff --git a/Directory.Build.targets b/Directory.Build.targets
+index d816857c..7b2a3390 100644
+--- a/Directory.Build.targets
++++ b/Directory.Build.targets
+@@ -10,22 +10,4 @@
+ $(MajorVersion).$(MinorVersion)
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+diff --git a/global.json b/global.json
+index 0e7f27a5..412fb4a9 100644
+--- a/global.json
++++ b/global.json
+@@ -1,6 +1,6 @@
+ {
+ "tools": {
+- "dotnet": "9.0.100-rc.2.24474.11",
++ "dotnet": "10.0.100-alpha.1.24551.9",
+ "runtimes": {
+ "dotnet": [
+ "$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"
+diff --git a/src/windowsdesktop/src/sfx/Directory.Build.targets b/src/windowsdesktop/src/sfx/Directory.Build.targets
+index 82de7dd9..ca14567b 100644
+--- a/src/windowsdesktop/src/sfx/Directory.Build.targets
++++ b/src/windowsdesktop/src/sfx/Directory.Build.targets
+@@ -2,6 +2,18 @@
+
+
+
++
++
++
++
++
++
++
++
+
+
+
diff --git a/src/SourceBuild/patches/wpf/0001-Keep-apphostpack-version-in-sync-with-targeting-and-.patch b/src/SourceBuild/patches/wpf/0001-Keep-apphostpack-version-in-sync-with-targeting-and-.patch
new file mode 100644
index 000000000000..b6a83c05ac56
--- /dev/null
+++ b/src/SourceBuild/patches/wpf/0001-Keep-apphostpack-version-in-sync-with-targeting-and-.patch
@@ -0,0 +1,151 @@
+From bafb5b89e13ae06c8525fa3f73a84c222527da6a Mon Sep 17 00:00:00 2001
+From: Viktor Hofer
+Date: Mon, 4 Nov 2024 11:06:03 +0100
+Subject: [PATCH] Keep apphostpack version in sync with targeting and runtime
+ pack version
+
+Unblocks https://github.com/dotnet/sdk/pull/43015
+
+WPF uses a "live" version of the .NETCoreApp targeting and runtime pack. Also use the live version for the apphost pack so that vcxprojs don't depend on the version inside the SDK.
+
+Backport: https://github.com/dotnet/wpf/pull/10030
+
+---
+ eng/Tools.props | 15 +++
+ .../tools/RuntimeFrameworkReference.targets | 94 ++++++++++++++++---
+ 2 files changed, 95 insertions(+), 14 deletions(-)
+ create mode 100644 eng/Tools.props
+
+diff --git a/eng/Tools.props b/eng/Tools.props
+new file mode 100644
+index 000000000..1393e1776
+--- /dev/null
++++ b/eng/Tools.props
+@@ -0,0 +1,15 @@
++
++
++
++ <_RuntimeIdentifier Condition="'$(Platform)' == ''">win-x86
++ <_RuntimeIdentifier Condition="'$(Platform)' != ''">win-$(Platform)
++
++
++
++
++
++
++
++
++
++
+diff --git a/eng/WpfArcadeSdk/tools/RuntimeFrameworkReference.targets b/eng/WpfArcadeSdk/tools/RuntimeFrameworkReference.targets
+index 95cb70775..6dd7eb19e 100644
+--- a/eng/WpfArcadeSdk/tools/RuntimeFrameworkReference.targets
++++ b/eng/WpfArcadeSdk/tools/RuntimeFrameworkReference.targets
+@@ -12,15 +12,6 @@
+ Version="$(MicrosoftNETCorePlatformsVersion)"
+ Condition="'$(ManagedCxx)'=='true'"/>
+
+-
+- $(MicrosoftNETCoreAppRefVersion)
+-
+-
+
++
++ true
++ true
++ true
++
++
++
++
++ $(MicrosoftNETCoreAppRefVersion)
++ $(MicrosoftNETCoreAppRuntimewinx64Version)
++ $(MicrosoftNETCoreAppRuntimewinx64Version)
++
++
++
++
++
++
++
++
+
+- $(MicrosoftNETCoreAppRuntimewinx64Version)
++ false
++ false
++ false
++
++ false
+
++
++
++
++
++
++
++
++
++
++
++
++
++
++ <_ResolvedRuntimePackPath>@(ResolvedRuntimePack->WithMetadataValue('FrameworkName', 'Microsoft.NETCore.App')->Metadata('Path'))
++
++
++
++
++ $(NuGetPackageRoot)microsoft.netcore.app.ref\$(MicrosoftNETCoreAppRefVersion)
++ $(MicrosoftNETCoreAppRefVersion)
++ $(_ResolvedRuntimePackPath)
++ $(MicrosoftNETCoreAppRuntimewinx64Version)
++
++
++
++
++
++
++
++
++ @(ResolvedAppHostPack->'%(Path)')
++
++
++
++ @(ResolvedIjwHostPack->'%(Path)')
++
++
++
+
diff --git a/src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets b/src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets
index 8f5e436c93eb..082b42b988c0 100644
--- a/src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets
+++ b/src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets
@@ -28,10 +28,10 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildThisFileDirectory)..\
$(StaticWebAssetsSdkDirectoryRoot)tasks\
- <_StaticWebAssetsSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_StaticWebAssetsSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net10.0
<_StaticWebAssetsSdkTasksTFM Condition=" '$(_StaticWebAssetsSdkTasksTFM)' == ''">net472
$(StaticWebAssetsSdkBuildTasksDirectoryRoot)$(_StaticWebAssetsSdkTasksTFM)\Microsoft.NET.Sdk.StaticWebAssets.Tasks.dll
- <_StaticWebAssetsSdkToolAssembly>$(StaticWebAssetsSdkDirectoryRoot)tools\net9.0\Microsoft.NET.Sdk.StaticWebAssets.Tool.dll
+ <_StaticWebAssetsSdkToolAssembly>$(StaticWebAssetsSdkDirectoryRoot)tools\net10.0\Microsoft.NET.Sdk.StaticWebAssets.Tool.dll
diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets
index 2a6469942cd9..eaff81f14135 100644
--- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets
+++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets
@@ -14,7 +14,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<_TargetFrameworkVersionWithoutV>$(TargetFrameworkVersion.TrimStart('vV'))
- $(MSBuildThisFileDirectory)\tools\net9.0\Microsoft.NET.Build.Extensions.Tasks.dll
+ $(MSBuildThisFileDirectory)\tools\net10.0\Microsoft.NET.Build.Extensions.Tasks.dll
$(MSBuildThisFileDirectory)\tools\net472\Microsoft.NET.Build.Extensions.Tasks.dll
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets
index 7f54cfbc5662..c59aae3df11e 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets
@@ -12,7 +12,7 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.DotNet.ApiCompat.Task.dll
- $(MSBuildThisFileDirectory)..\tools\net9.0\Microsoft.DotNet.ApiCompat.Task.dll
+ $(MSBuildThisFileDirectory)..\tools\net10.0\Microsoft.DotNet.ApiCompat.Task.dll
net9.0
+ net10.0
net472
$(MicrosoftNETBuildTasksDirectoryRoot)$(MicrosoftNETBuildTasksTFM)\
$(MicrosoftNETBuildTasksDirectory)Microsoft.NET.Build.Tasks.dll
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
index 7718e9c56b28..ca64fe5c5fae 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
@@ -28,10 +28,11 @@ Copyright (c) .NET Foundation. All rights reserved.
+
- 10.0
+ 11.0
17.12
diff --git a/src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets b/src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets
index fcb80c1dfe2f..c5206449c345 100644
--- a/src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets
+++ b/src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets
@@ -19,7 +19,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
true
- <_PublishTaskFramework Condition=" '$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_PublishTaskFramework Condition=" '$(MSBuildRuntimeType)' == 'Core'">net10.0
<_PublishTaskFramework Condition=" '$(_PublishTaskFramework)' == ''">net472
<_PublishTasksDir Condition=" '$(_PublishTasksDir)'=='' ">$(MSBuildThisFileDirectory)..\tools\$(_PublishTaskFramework)\
<_PublishTaskAssemblyFullPath Condition=" '$(_PublishTaskAssemblyFullPath)'=='' ">$(_PublishTasksDir)Microsoft.NET.Sdk.Publish.Tasks.dll
diff --git a/test/EndToEnd.Tests/GivenFrameworkDependentApps.cs b/test/EndToEnd.Tests/GivenFrameworkDependentApps.cs
index b44ba221601e..1eec972b5a8d 100644
--- a/test/EndToEnd.Tests/GivenFrameworkDependentApps.cs
+++ b/test/EndToEnd.Tests/GivenFrameworkDependentApps.cs
@@ -13,7 +13,7 @@ public class GivenFrameworkDependentApps(ITestOutputHelper log) : SdkTest(log)
[ClassData(typeof(SupportedNetCoreAppVersions))]
public void ItDoesNotRollForwardToTheLatestVersionOfNetCore(string minorVersion)
{
- if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0")
+ if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0" || minorVersion == "10.0")
{
// https://github.com/dotnet/core-sdk/issues/621
return;
@@ -25,7 +25,7 @@ public void ItDoesNotRollForwardToTheLatestVersionOfNetCore(string minorVersion)
[ClassData(typeof(SupportedAspNetCoreVersions))]
public void ItDoesNotRollForwardToTheLatestVersionOfAspNetCoreApp(string minorVersion)
{
- if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0")
+ if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0" || minorVersion == "10.0")
{
// https://github.com/dotnet/core-sdk/issues/621
return;
diff --git a/test/EndToEnd.Tests/ProjectBuildTests.cs b/test/EndToEnd.Tests/ProjectBuildTests.cs
index ca82b9a9f2bb..bef058aff8f7 100644
--- a/test/EndToEnd.Tests/ProjectBuildTests.cs
+++ b/test/EndToEnd.Tests/ProjectBuildTests.cs
@@ -411,12 +411,6 @@ private static string DetectExpectedDefaultFramework(string template = "")
if (template.StartsWith("mstest")
|| template.StartsWith("winforms")
|| template.StartsWith("wpf")
- || template.StartsWith("web")
- || template.StartsWith("razor")
- || template.StartsWith("blazor")
- || template.StartsWith("mvc")
- || template.StartsWith("worker")
- || template.StartsWith("grpc")
|| template.StartsWith("classlib")
|| template.StartsWith("console")
|| template.StartsWith("nunit")
diff --git a/test/EndToEnd.Tests/Utilities/SupportedNetCoreAppVersions.cs b/test/EndToEnd.Tests/Utilities/SupportedNetCoreAppVersions.cs
index 287be6cdd4b3..a83706124a26 100644
--- a/test/EndToEnd.Tests/Utilities/SupportedNetCoreAppVersions.cs
+++ b/test/EndToEnd.Tests/Utilities/SupportedNetCoreAppVersions.cs
@@ -32,7 +32,8 @@ public class SupportedNetCoreAppVersions : IEnumerable
diff --git a/test/TestAssets/TestProjects/MSBuildCultureResourceGeneration/MSBuildCultureResourceGeneration.csproj b/test/TestAssets/TestProjects/MSBuildCultureResourceGeneration/MSBuildCultureResourceGeneration.csproj
index c147bb442ef3..a626742ef584 100644
--- a/test/TestAssets/TestProjects/MSBuildCultureResourceGeneration/MSBuildCultureResourceGeneration.csproj
+++ b/test/TestAssets/TestProjects/MSBuildCultureResourceGeneration/MSBuildCultureResourceGeneration.csproj
@@ -2,7 +2,7 @@
Exe
- net9.0
+ net10.0
enable
enable
diff --git a/test/TestAssets/TestProjects/SolutionWithAppAndDcProj/SampleApp/SampleApp.csproj b/test/TestAssets/TestProjects/SolutionWithAppAndDcProj/SampleApp/SampleApp.csproj
index fd4bd08da298..ed9781c223ab 100644
--- a/test/TestAssets/TestProjects/SolutionWithAppAndDcProj/SampleApp/SampleApp.csproj
+++ b/test/TestAssets/TestProjects/SolutionWithAppAndDcProj/SampleApp/SampleApp.csproj
@@ -2,7 +2,7 @@
Exe
- net9.0
+ net10.0
enable
enable
diff --git a/test/TestAssets/TestProjects/UseCswinrt/consolecswinrt.csproj b/test/TestAssets/TestProjects/UseCswinrt/consolecswinrt.csproj
index 12db96346506..1f40abb52dc9 100644
--- a/test/TestAssets/TestProjects/UseCswinrt/consolecswinrt.csproj
+++ b/test/TestAssets/TestProjects/UseCswinrt/consolecswinrt.csproj
@@ -1,7 +1,7 @@
Exe
- net9.0
+ net10.0
Windows
10.0.17763.39
diff --git a/test/dotnet-format.Tests/tests/Analyzers/AnalyzerAssemblyGenerator.cs b/test/dotnet-format.Tests/tests/Analyzers/AnalyzerAssemblyGenerator.cs
index f7f3d3ce3d2e..9de4386db9d7 100644
--- a/test/dotnet-format.Tests/tests/Analyzers/AnalyzerAssemblyGenerator.cs
+++ b/test/dotnet-format.Tests/tests/Analyzers/AnalyzerAssemblyGenerator.cs
@@ -32,15 +32,15 @@ private static async Task> GetReferencesAsync()
};
// Resolve the targeting pack and the target framework used to compile the test assembly.
- var netCurrentTargetingPackVersion = (string)AppContext.GetData("ReferenceAssemblies.NetCurrent.TargetingPackVersion")!;
- var netCurrentTargetFramework = (string)AppContext.GetData("ReferenceAssemblies.NetCurrent.TargetFramework")!;
+ var sdkTargetFrameworkTargetingPackVersion = (string)AppContext.GetData("ReferenceAssemblies.SdkTargetFramework.TargetingPackVersion")!;
+ var sdkTargetFrameworkTargetFramework = (string)AppContext.GetData("ReferenceAssemblies.SdkTargetFramework.TargetFramework")!;
var nugetConfigPath = Path.Combine(TestContext.Current.TestExecutionDirectory, "NuGet.config");
- ReferenceAssemblies netCurrentReferenceAssemblies = new(netCurrentTargetFramework,
- new PackageIdentity("Microsoft.NETCore.App.Ref", netCurrentTargetingPackVersion),
- Path.Combine("ref", netCurrentTargetFramework));
- netCurrentReferenceAssemblies = netCurrentReferenceAssemblies.WithNuGetConfigFilePath(nugetConfigPath);
+ ReferenceAssemblies sdkTargetFrameworkReferenceAssemblies = new(sdkTargetFrameworkTargetFramework,
+ new PackageIdentity("Microsoft.NETCore.App.Ref", sdkTargetFrameworkTargetingPackVersion),
+ Path.Combine("ref", sdkTargetFrameworkTargetFramework));
+ sdkTargetFrameworkReferenceAssemblies = sdkTargetFrameworkReferenceAssemblies.WithNuGetConfigFilePath(nugetConfigPath);
- var netcoreMetadataReferences = await netCurrentReferenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None);
+ var netcoreMetadataReferences = await sdkTargetFrameworkReferenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None);
references.AddRange(netcoreMetadataReferences.Where(reference => Path.GetFileName(reference.Display) != "System.Collections.Immutable.dll"));
s_references = references;
diff --git a/test/dotnet-format.Tests/tests/dotnet-format.UnitTests.csproj b/test/dotnet-format.Tests/tests/dotnet-format.UnitTests.csproj
index aaf132f33d25..38f311aa58f2 100644
--- a/test/dotnet-format.Tests/tests/dotnet-format.UnitTests.csproj
+++ b/test/dotnet-format.Tests/tests/dotnet-format.UnitTests.csproj
@@ -1,7 +1,7 @@
- $(NetCurrent)
+ $(SdkTargetFramework)
Microsoft.CodeAnalysis.Tools.Tests
true
@@ -20,11 +20,11 @@
-
-
+
+
-
-
+
+
diff --git a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Mvc.verified.txt b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Mvc.verified.txt
index 48a94bd0a71f..52a210b737db 100644
--- a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Mvc.verified.txt
+++ b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Mvc.verified.txt
@@ -68,13 +68,13 @@ Template options:
-uld, --use-local-db Whether to use LocalDB instead of SQLite. This option only applies if --auth Individual or --auth IndividualB2C is specified.
Type: bool
Default: false
- -f, --framework The target framework for the project.
+ -f, --framework The target framework for the project.
Type: choice
- net9.0 Target net9.0
- net8.0 Target net8.0
- net7.0 Target net7.0
- net6.0 Target net6.0
- Default: net9.0
+ net10.0 Target net10.0
+ net8.0 Target net8.0
+ net7.0 Target net7.0
+ net6.0 Target net6.0
+ Default: net10.0
--no-restore If specified, skips the automatic restore of the project on create.
Type: bool
Default: false
diff --git a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_WebAPI.verified.txt b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_WebAPI.verified.txt
index eae82a093f9d..b5fa37a85f90 100644
--- a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_WebAPI.verified.txt
+++ b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_WebAPI.verified.txt
@@ -56,13 +56,13 @@ Template options:
-uld, --use-local-db Whether to use LocalDB instead of SQLite. This option only applies if --auth Individual or --auth IndividualB2C is specified.
Type: bool
Default: false
- -f, --framework The target framework for the project.
+ -f, --framework The target framework for the project.
Type: choice
- net9.0 Target net9.0
- net8.0 Target net8.0
- net7.0 Target net7.0
- net6.0 Target net6.0
- Default: net9.0
+ net10.0 Target net10.0
+ net8.0 Target net8.0
+ net7.0 Target net7.0
+ net6.0 Target net6.0
+ Default: net10.0
--no-restore If specified, skips the automatic restore of the project on create.
Type: bool
Default: false
diff --git a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Webapp_common.verified.txt b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Webapp_common.verified.txt
index 383da485d6d0..c272311e7ba8 100644
--- a/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Webapp_common.verified.txt
+++ b/test/dotnet-new.Tests/Approvals/WebProjectsTests.CanShowHelp_Webapp_common.verified.txt
@@ -72,13 +72,13 @@ Template options:
-uld, --use-local-db Whether to use LocalDB instead of SQLite. This option only applies if --auth Individual or --auth IndividualB2C is specified.
Type: bool
Default: false
- -f, --framework The target framework for the project.
+ -f, --framework The target framework for the project.
Type: choice
- net9.0 Target net9.0
- net8.0 Target net8.0
- net7.0 Target net7.0
- net6.0 Target net6.0
- Default: net9.0
+ net10.0 Target net10.0
+ net8.0 Target net8.0
+ net7.0 Target net7.0
+ net6.0 Target net6.0
+ Default: net10.0
--called-api-url URL of the API to call from the web app. This option only applies if --auth SingleOrg, --auth MultiOrg or --auth IndividualB2C is specified.
Type: string
Default: https://graph.microsoft.com/v1.0
diff --git a/test/dotnet-new.Tests/CommonTemplatesTests.cs b/test/dotnet-new.Tests/CommonTemplatesTests.cs
index 98c86dde4016..e8f53ff541cf 100644
--- a/test/dotnet-new.Tests/CommonTemplatesTests.cs
+++ b/test/dotnet-new.Tests/CommonTemplatesTests.cs
@@ -165,7 +165,9 @@ public void NuGetConfigPermissions()
public async Task AotVariants(string name, string language)
{
// template framework needs to be hardcoded here during the major version transition.
- string currentDefaultFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
+ // string currentDefaultFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
+ // Templates have not been updated to net10.0 yet "net9.0";
+ string currentDefaultFramework = "net9.0";
string workingDir = CreateTemporaryFolder(folderName: $"{name}-{language}");
string outputDir = "MyProject";
@@ -334,9 +336,9 @@ public async Task FeaturesSupport(
bool supportsImplicitUsings,
bool supportsFileScopedNs)
{
- // Templates have not been updated to net9.0 yet "net8.0";
- // string currentDefaultFramework = "net8.0";
- string currentDefaultFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
+ // Templates have not been updated to net10.0 yet "net9.0";
+ string currentDefaultFramework = "net9.0";
+ // string currentDefaultFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
string workingDir = CreateTemporaryFolder(folderName: $"{name}-{langVersion ?? "null"}-{framework ?? "null"}");
string outputDir = "MyProject";
diff --git a/test/dotnet-new.Tests/TestDirectoryBuildProps/Directory.Build.props b/test/dotnet-new.Tests/TestDirectoryBuildFiles/Directory.Build.props
similarity index 100%
rename from test/dotnet-new.Tests/TestDirectoryBuildProps/Directory.Build.props
rename to test/dotnet-new.Tests/TestDirectoryBuildFiles/Directory.Build.props
diff --git a/test/dotnet-new.Tests/TestDirectoryBuildFiles/Directory.Build.targets b/test/dotnet-new.Tests/TestDirectoryBuildFiles/Directory.Build.targets
new file mode 100644
index 000000000000..39af617d4232
--- /dev/null
+++ b/test/dotnet-new.Tests/TestDirectoryBuildFiles/Directory.Build.targets
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj b/test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
index ebbe79272df2..4e24da727590 100644
--- a/test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
+++ b/test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
@@ -66,8 +66,9 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests
-
-
+
+
+