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 "6.0", "7.0", "8.0", - "9.0" + "9.0", + "10.0" }; public static IEnumerable TargetFrameworkShortFolderVersion diff --git a/test/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs b/test/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs index 66733c52896c..43b766d65c1a 100644 --- a/test/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs +++ b/test/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs @@ -20,7 +20,7 @@ public CreateNewImageTests(ITestOutputHelper testOutput) _testOutput = testOutput; } - [DockerAvailableFact] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public void CreateNewImage_Baseline() { DirectoryInfo newProjectDir = new(GetTestDirectoryName()); @@ -70,7 +70,7 @@ private static ImageConfig GetImageConfigFromTask(CreateNewImage task) return new(task.GeneratedContainerConfiguration); } - [DockerAvailableFact] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public void ParseContainerProperties_EndToEnd() { DirectoryInfo newProjectDir = new(GetTestDirectoryName()); @@ -133,7 +133,7 @@ public void ParseContainerProperties_EndToEnd() /// /// Creates a console app that outputs the environment variable added to the image. /// - [DockerAvailableFact()] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public void Tasks_EndToEnd_With_EnvironmentVariable_Validation() { DirectoryInfo newProjectDir = new(GetTestDirectoryName()); @@ -216,7 +216,7 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation() .And.HaveStdOut("Foo"); } - [DockerAvailableFact] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public async System.Threading.Tasks.Task CreateNewImage_RootlessBaseImage() { const string RootlessBase = "dotnet/rootlessbase"; diff --git a/test/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs b/test/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs index c0c2f16399d3..717421b9dd83 100644 --- a/test/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs +++ b/test/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs @@ -38,7 +38,7 @@ public void Dispose() _loggerFactory.Dispose(); } - [DockerAvailableFact()] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public async Task ApiEndToEndWithRegistryPushAndPull() { ILogger logger = _loggerFactory.CreateLogger(nameof(ApiEndToEndWithRegistryPushAndPull)); @@ -85,7 +85,7 @@ public async Task ApiEndToEndWithRegistryPushAndPull() } } - [DockerAvailableFact()] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public async Task ApiEndToEndWithLocalLoad() { ILogger logger = _loggerFactory.CreateLogger(nameof(ApiEndToEndWithLocalLoad)); @@ -126,7 +126,7 @@ public async Task ApiEndToEndWithLocalLoad() } } - [DockerAvailableFact()] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public async Task ApiEndToEndWithArchiveWritingAndLoad() { ILogger logger = _loggerFactory.CreateLogger(nameof(ApiEndToEndWithArchiveWritingAndLoad)); @@ -291,7 +291,7 @@ public async Task EndToEnd_MultiProjectSolution() commandResult.Should().HaveStdOutContaining("Pushed image 'consoleapp:latest'"); } - [DockerAvailableTheory()] + [DockerAvailableTheory(Skip = "https://github.com/dotnet/sdk/issues/42850")] [InlineData("webapi", false)] [InlineData("webapi", true)] [InlineData("worker", false)] @@ -468,7 +468,7 @@ public async Task EndToEnd_NoAPI_ProjectType(string projectType, bool addPackage privateNuGetAssets.Delete(true); } - [DockerAvailableFact()] + [DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")] public void EndToEnd_NoAPI_Console() { DirectoryInfo newProjectDir = new(Path.Combine(TestSettings.TestArtifactsDirectory, "CreateNewImageTest")); @@ -555,7 +555,7 @@ public void EndToEnd_NoAPI_Console() [DockerSupportsArchInlineData("linux/386", "linux-x86", "/app", Skip = "There's no apphost for linux-x86 so we can't execute self-contained, and there's no .NET runtime base image for linux-x86 so we can't execute framework-dependent.")] [DockerSupportsArchInlineData("windows/amd64", "win-x64", "C:\\app")] [DockerSupportsArchInlineData("linux/amd64", "linux-x64", "/app")] - [DockerAvailableTheory()] + [DockerAvailableTheory(Skip = "https://github.com/dotnet/sdk/issues/42850")] public async Task CanPackageForAllSupportedContainerRIDs(string dockerPlatform, string rid, string workingDir) { ILogger logger = _loggerFactory.CreateLogger(nameof(CanPackageForAllSupportedContainerRIDs)); diff --git a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs index 07e0143b7f1b..31167bf1de5e 100644 --- a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs +++ b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs @@ -709,7 +709,7 @@ private void TestInvalidTargetFramework(string testName, string targetFramework, } [Theory] - [InlineData("netcoreapp9.1")] + [InlineData("netcoreapp10.1")] [InlineData("netstandard2.2")] public void It_fails_to_build_if_targeting_a_higher_framework_than_is_supported(string targetFramework) { diff --git a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs index 15cc7ae391d5..fafc1185848a 100644 --- a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs +++ b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs @@ -13,7 +13,7 @@ public GivenThatWeWantToFloatWarningLevels(ITestOutputHelper log) : base(log) } [InlineData(targetFrameworkNet6, "6")] - [InlineData(ToolsetInfo.CurrentTargetFramework, ToolsetInfo.CurrentTargetFrameworkVersion)] + [InlineData(ToolsetInfo.CurrentTargetFramework, "1")] [InlineData(targetFrameworkNetFramework472, "4")] [RequiresMSBuildVersionTheory("16.8")] public void It_defaults_WarningLevel_To_The_Current_TFM_When_Net(string tfm, string warningLevel) @@ -59,7 +59,7 @@ static void Main() } [InlineData(1, "1")] - [InlineData(null, ToolsetInfo.CurrentTargetFrameworkVersion)] + [InlineData(null, "1")] [RequiresMSBuildVersionTheory("16.8")] public void It_always_accepts_user_defined_WarningLevel(int? warningLevel, string expectedWarningLevel) { @@ -156,7 +156,7 @@ static void Main() buildResult.StdErr.Should().Be(string.Empty); } - [InlineData(ToolsetInfo.CurrentTargetFramework, ToolsetInfo.NextTargetFrameworkVersion)] + [InlineData(ToolsetInfo.CurrentTargetFramework, ToolsetInfo.CurrentTargetFrameworkVersion)] [RequiresMSBuildVersionTheory("16.8")] public void It_defaults_preview_AnalysisLevel_to_the_next_tfm(string currentTFM, string nextTFMVersionNumber) { diff --git a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs index 282b0c9356b0..98029672102a 100644 --- a/test/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs +++ b/test/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs @@ -132,7 +132,7 @@ public void It_warns_when_targeting_certain_frameworks_and_not_using_pragma_supp } [Theory] - [InlineData(ToolsetInfo.CurrentTargetFramework)] + [InlineData("net9.0")] public void It_errors_when_targeting_certain_frameworks_and_not_using_pragma_suppressions(string targetFramework) { var testProject = new TestProject() @@ -158,7 +158,7 @@ public void It_errors_when_targeting_certain_frameworks_and_not_using_pragma_sup } [Theory] - [InlineData(ToolsetInfo.CurrentTargetFramework)] + [InlineData("net9.0")] public void It_allows_downgrading_errors_to_warnings_via_project_config(string targetFramework) { var testProject = new TestProject() diff --git a/test/Microsoft.NET.Build.Tests/ReferenceExeTests.cs b/test/Microsoft.NET.Build.Tests/ReferenceExeTests.cs index 83862b78180d..fb03918297d5 100644 --- a/test/Microsoft.NET.Build.Tests/ReferenceExeTests.cs +++ b/test/Microsoft.NET.Build.Tests/ReferenceExeTests.cs @@ -320,7 +320,7 @@ public void ReferencedExeCanRunWhenPublishedWithTrimming(bool referenceExeInCode .Replace("Boolean", referenceExeInCode.ToString())); } - [RequiresMSBuildVersionTheory("17.0.0.32901")] + [RequiresMSBuildVersionTheory("17.0.0.32901", Skip = "https://github.com/dotnet/sdk/issues/42850")] [InlineData("xunit")] [InlineData("mstest")] public void TestProjectCanReferenceExe(string testTemplateName) diff --git a/test/Microsoft.NET.Build.Tests/WorkloadTests.cs b/test/Microsoft.NET.Build.Tests/WorkloadTests.cs index 7526c08d0353..08d2f0424bb9 100644 --- a/test/Microsoft.NET.Build.Tests/WorkloadTests.cs +++ b/test/Microsoft.NET.Build.Tests/WorkloadTests.cs @@ -235,7 +235,7 @@ public void It_should_get_suggested_workload_by_GetRequiredWorkloads_target() var mainProject = new TestProject() { Name = "MainProject", - TargetFrameworks = $"{ToolsetInfo.CurrentTargetFramework}-android", + TargetFrameworks = $"net9.0-android", IsSdkProject = true, IsExe = true }; @@ -260,10 +260,10 @@ public void It_should_get_suggested_workload_by_GetRequiredWorkloads_target() } [Theory] - [InlineData($"{ToolsetInfo.CurrentTargetFramework}-android;{ToolsetInfo.CurrentTargetFramework}-ios", $"{ToolsetInfo.CurrentTargetFramework}-android;{ToolsetInfo.CurrentTargetFramework}-ios", "android;ios")] - [InlineData(ToolsetInfo.CurrentTargetFramework, $"{ToolsetInfo.CurrentTargetFramework};{ToolsetInfo.CurrentTargetFramework}-android;{ToolsetInfo.CurrentTargetFramework}-ios", "android;ios")] - [InlineData($"{ToolsetInfo.CurrentTargetFramework};{ToolsetInfo.CurrentTargetFramework}-ios", $"{ToolsetInfo.CurrentTargetFramework};{ToolsetInfo.CurrentTargetFramework}-android", "android;ios")] - [InlineData(ToolsetInfo.CurrentTargetFramework, ToolsetInfo.CurrentTargetFramework, null)] + [InlineData("net9.0-android;net9.0-ios", "net9.0-android;net9.0-ios", "android;ios")] + [InlineData("net9.0", "net9.0;net9.0-android;net9.0-ios", "android;ios")] + [InlineData("net9.0;net9.0-ios", "net9.0;net9.0-android", "android;ios")] + [InlineData("net9.0", "net9.0", null)] public void Given_multi_target_It_should_get_suggested_workload_by_GetRequiredWorkloads_target(string mainTfm, string referencingTfm, string expected) { // Skip Test if SDK is < 6.0.400 diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs index af114704e410..976840b02fc6 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs @@ -50,7 +50,7 @@ public void It_collects_Trimmer_SingleFile_ReadyToRun_publishing_properties(stri s.Should().Contain( "{\"EventName\":\"ReadyToRun\",\"Properties\":{\"PublishReadyToRunUseCrossgen2\":\"true\",") .And.MatchRegex( - "\"Crossgen2PackVersion\":\"[5-9]\\..+\""); + "\"Crossgen2PackVersion\":\"([5-9]|[1-9]\\d{1,})\\..+\""); s.Should().Contain( "\"FailedCount\":\"0\""); s.Should().MatchRegex( @@ -82,7 +82,7 @@ void It_collects_crossgen2_publishing_properties(string targetFramework) .And.Contain( "{\"EventName\":\"ReadyToRun\",\"Properties\":{\"PublishReadyToRunUseCrossgen2\":\"true\",") .And.MatchRegex( - "\"Crossgen2PackVersion\":\"[5-9]\\..+\"") + "\"Crossgen2PackVersion\":\"([5-9]|[1-9]\\d{1,})\\..+\"") .And.Contain( "\"CompileListCount\":\"1\",\"FailedCount\":\"0\""); } diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs index dd583d119f6e..891b538f2478 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs @@ -40,7 +40,25 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string { testProject.AdditionalProperties["StripSymbols"] = "true"; } - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); + + string[] ignoredPatterns = null; + + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + ignoredPatterns = new string[] + { + // Both these exclusions can be removed once the min tested version is .NET 10 and the min supported + // XCode version is XCode 16. + + // -ld_classic option is required to workaround bugs in XCode 15 and .NET 9 and older runtimes. + // See https://github.com/dotnet/runtime/issues/97745 for details. + "ld: warning: -ld_classic is deprecated and will be removed in a future release", + // These warnings show up when dotnet/runtime compiled using Apple clang 15+ is used + // with classic linker (either Apple clang 14 or clang 15+ with -ld_classic). + "ld: warning: __LD,__compact_unwind entries for", + }; + } var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); publishCommand @@ -49,7 +67,7 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string .And.NotHaveStdOutContaining("IL2026") .And.NotHaveStdErrContaining("NETSDK1179") .And.NotHaveStdErrContaining("warning") - .And.NotHaveStdOutContaining("warning"); + .And.NotHaveStdOutContaining("warning", ignoredPatterns); var buildProperties = testProject.GetPropertyValues(testAsset.TestRoot, targetFramework); var rid = buildProperties["NETCoreSdkPortableRuntimeIdentifier"]; @@ -84,7 +102,7 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_false(string t var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "false"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -128,7 +146,7 @@ public void NativeAot_app_runs_in_debug_with_no_config_when_PublishAot_is_enable testProject.AdditionalProperties["StripSymbols"] = "true"; } - var testAsset = _testAssetsManager.CreateTestProject(testProject) + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework) // populate a runtime config file with a key value pair // .WithProjectChanges(project => AddRuntimeConfigOption(project)); @@ -179,7 +197,7 @@ public void NativeAot_app_runs_in_release_with_no_config_when_PublishAot_is_enab testProject.AdditionalProperties["StripSymbols"] = "true"; } - var testAsset = _testAssetsManager.CreateTestProject(testProject) + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework) // populate a runtime config file with a key value pair // .WithProjectChanges(project => AddRuntimeConfigOption(project)); @@ -224,7 +242,7 @@ public void NativeAot_app_builds_with_config_when_PublishAot_is_enabled(string t var testProject = CreateAppForConfigCheck(targetFramework, projectName, true); testProject.RecordProperties("NETCoreSdkPortableRuntimeIdentifier"); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject) + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework) // populate a runtime config file with a key value pair // .WithProjectChanges(project => AddRuntimeConfigOption(project)); @@ -272,7 +290,7 @@ public void NativeAot_hw_runs_with_PackageReference_PublishAot_is_enabled(string { testProject.AdditionalProperties["StripSymbols"] = "true"; } - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -321,7 +339,7 @@ public void NativeAot_hw_runs_with_PackageReference_PublishAot_is_empty(string t { testProject.AdditionalProperties["StripSymbols"] = "true"; } - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -352,7 +370,7 @@ public void NativeAot_hw_runs_with_cross_target_PublishAot_is_enabled(string tar var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -386,7 +404,7 @@ public void NativeAot_hw_runs_with_cross_PackageReference_PublishAot_is_enabled( testProject.PackageReferences.Add(new TestPackageReference("Microsoft.DotNet.ILCompiler", ExplicitPackageVersion)); testProject.PackageReferences.Add(new TestPackageReference("runtime.win-x64.Microsoft.DotNet.ILCompiler", ExplicitPackageVersion)); - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -421,7 +439,7 @@ public void NativeAot_hw_runs_with_cross_PackageReference_PublishAot_is_empty(st testProject.PackageReferences.Add(new TestPackageReference("Microsoft.DotNet.ILCompiler", ExplicitPackageVersion)); testProject.PackageReferences.Add(new TestPackageReference("runtime.win-x64.Microsoft.DotNet.ILCompiler", ExplicitPackageVersion)); - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -469,7 +487,7 @@ public void NativeAot_hw_fails_with_sdk6_PackageReference_PublishAot_is_enabled( testProject.PackageReferences.Add(new TestPackageReference("Microsoft.DotNet.ILCompiler", ExplicitPackageVersion)); - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); publishCommand @@ -492,7 +510,7 @@ public void NativeAot_hw_fails_with_unsupported_target_rid(string targetFramewor var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject) + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework) .WithProjectChanges(project => OverrideKnownILCompilerPackRuntimeIdentifiers(project, $"{rid};")); var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); @@ -515,7 +533,7 @@ public void NativeAot_hw_fails_with_unsupported_host_rid(string targetFramework) var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject) + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework) .WithProjectChanges(project => OverrideKnownILCompilerPackRuntimeIdentifiers(project, $"{supportedTargetRid};")); var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); @@ -545,7 +563,7 @@ public void Only_Aot_warnings_are_produced_if_EnableAotAnalyzer_is_set(string ta // unless PublishAot is also set. testProject.AdditionalProperties["EnableAotAnalyzer"] = "true"; testProject.AdditionalProperties["SuppressTrimAnalysisWarnings"] = "false"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); publishCommand @@ -564,7 +582,7 @@ public void IsAotCompatible_implies_enable_analyzers(string targetFramework) var projectName = "WarningAppWithAotAnalyzer"; var testProject = CreateTestProjectWithAnalysisWarnings(targetFramework, projectName, true); testProject.AdditionalProperties["IsAotCompatible"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); buildCommand @@ -677,7 +695,7 @@ public void Requires_analyzers_produce_warnings_without_PublishAot_being_set(str testProject.AdditionalProperties["EnableSingleFileAnalyzer"] = "true"; testProject.AdditionalProperties["SuppressTrimAnalysisWarnings"] = "false"; testProject.AdditionalProperties["UseCurrentRuntimeIdentifier"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); publishCommand @@ -708,7 +726,7 @@ public void NativeAot_compiler_runs_when_PublishAot_is_enabled(string targetFram testProject.AdditionalProperties["SuppressTrimAnalysisWarnings"] = "false"; testProject.AdditionalProperties["UseCurrentRuntimeIdentifier"] = "true"; testProject.AdditionalProperties["SelfContained"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -749,7 +767,7 @@ public void Warnings_are_generated_in_build_with_analyzers_enabled(string target testProject.AdditionalProperties["EnableAotAnalyzer"] = "true"; testProject.AdditionalProperties["EnableTrimAnalyzer"] = "true"; testProject.AdditionalProperties["EnableSingleFileAnalyzer"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var buildCommand = new BuildCommand(testAsset); buildCommand @@ -775,7 +793,7 @@ public void Warnings_are_not_generated_in_build_with_analyzers_disabled(string t testProject.AdditionalProperties["EnableAotAnalyzer"] = "false"; testProject.AdditionalProperties["EnableTrimAnalyzer"] = "false"; testProject.AdditionalProperties["EnableSingleFileAnalyzer"] = "false"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var buildCommand = new BuildCommand(testAsset); buildCommand @@ -805,7 +823,7 @@ public void Warnings_are_generated_even_with_analyzers_disabled(string targetFra testProject.AdditionalProperties["SuppressTrimAnalysisWarnings"] = "false"; testProject.AdditionalProperties["UseCurrentRuntimeIdentifier"] = "true"; testProject.AdditionalProperties["SelfContained"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -842,7 +860,7 @@ public void NativeAotStaticLib_only_runs_when_switch_is_enabled(string targetFra testProject.AdditionalProperties["SelfContained"] = "true"; testProject.AdditionalProperties["NativeLib"] = "Static"; testProject.SelfContained = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -895,7 +913,7 @@ public void NativeAotSharedLib_only_runs_when_switch_is_enabled(string targetFra testProject.AdditionalProperties["UseCurrentRuntimeIdentifier"] = "true"; testProject.AdditionalProperties["NativeLib"] = "Shared"; testProject.AdditionalProperties["SelfContained"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new PublishCommand(testAsset); publishCommand @@ -920,7 +938,7 @@ public void It_publishes_with_implicit_rid_with_NativeAotApp(string targetFramew var projectName = "ImplicitRidNativeAotApp"; var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); publishCommand @@ -936,7 +954,7 @@ public void It_builds_with_dynamiccodesupport_false_when_publishaot_true(string var projectName = "DynamicCodeSupportFalseApp"; var testProject = CreateHelloWorldTestProject(targetFramework, projectName, true); testProject.AdditionalProperties["PublishAot"] = "true"; - var testAsset = _testAssetsManager.CreateTestProject(testProject); + var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework); var buildCommand = new BuildCommand(testAsset); buildCommand diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs index 32254e1e39ae..4b77c49bd28d 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs @@ -75,9 +75,9 @@ public void ItUsesReleaseWithATargetFrameworkOptionNet8ForNet6AndNet7Multitarget { var secondProjectTfm = ToolsetInfo.CurrentTargetFramework; // Net8 here is a 'net 8+' project var expectedConfiguration = Release; - var expectedTfm = "net9.0"; + var expectedTfm = "net10.0"; - var (testAsset, testProjects) = Setup(new List { "net6.0", "net7.0", "net8.0", "net9.0" }, new List { secondProjectTfm }, PublishRelease, "", "", identifier: string.Join('-', args)); + var (testAsset, testProjects) = Setup(new List { "net6.0", "net7.0", "net8.0", "net9.0", "net10.0" }, new List { secondProjectTfm }, PublishRelease, "", "", identifier: string.Join('-', args)); var dotnetCommand = new DotnetCommand(Log, publish); dotnetCommand diff --git a/test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs b/test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs index 48b8dbe0cb8c..12514a9a6fe2 100644 --- a/test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs +++ b/test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs @@ -5,7 +5,7 @@ namespace Microsoft.NET.Publish.Tests { internal static class PublishTestUtils { -#if NET9_0 +#if NET10_0 public static IEnumerable SupportedTfms { get; } = new List { @@ -14,6 +14,7 @@ internal static class PublishTestUtils new object[] { "net6.0" }, new object[] { "net7.0" }, new object[] { "net8.0" }, + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; @@ -25,6 +26,7 @@ internal static class PublishTestUtils new object[] { "net6.0" }, new object[] { "net7.0" }, new object[] { "net8.0" }, + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; @@ -35,6 +37,7 @@ internal static class PublishTestUtils new object[] { "net6.0" }, new object[] { "net7.0" }, new object[] { "net8.0" }, + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; @@ -44,6 +47,7 @@ internal static class PublishTestUtils { new object[] { "net7.0" }, new object[] { "net8.0" }, + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; @@ -52,6 +56,7 @@ internal static class PublishTestUtils public static IEnumerable Net8Plus { get; } = new List { new object[] { "net8.0" }, + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; @@ -59,6 +64,7 @@ internal static class PublishTestUtils // This list should contain all supported TFMs after net9.0 public static IEnumerable Net9Plus { get; } = new List { + new object[] { "net9.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, // new object[] { ToolsetInfo.NextTargetFramework }, }; diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs index bf1ca6f53949..d87f86b7806f 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs @@ -44,7 +44,7 @@ public void Build60Hosted_Works() new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Shared.dll")).Should().Exist(); } - [PlatformSpecificFact(TestPlatforms.Windows)] + [WindowsOnlyRequiresMSBuildVersionFact("17.12", Reason = "Needs System.Text.Json 8.0.5")] [SkipOnPlatform(TestPlatforms.Linux | TestPlatforms.OSX, "https://github.com/dotnet/sdk/issues/42145")] public void Publish60Hosted_Works() { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.files.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.files.json index 0af2db05a6a2..3040de35ed4b 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.files.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.files.json @@ -232,7 +232,6 @@ "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_CJK.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_EFIGS.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.native.js.gz", @@ -377,6 +376,7 @@ "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\icudt_no_CJK.dat.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\netstandard.wasm.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\netstandard.wasm.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Components.Forms.wasm", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Components.Web.wasm", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.staticwebassets.json index 307408eaa015..a58d5e03a1c3 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_CanHaveDifferentBuildAndPublishModules.Publish.staticwebassets.json @@ -184,27 +184,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${RestorePath}\\microsoft.netcore.app.runtime.mono.browser-wasm\\${RuntimeVersion}\\runtimes\\browser-wasm\\native\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "SourceId": "blazorwasm-minimal", - "SourceType": "Computed", - "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" - }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "SourceId": "blazorwasm-minimal", @@ -3355,6 +3334,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\wwwroot\\index.html.br" }, + { + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "blazorwasm-minimal", + "SourceType": "Computed", + "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", "SourceId": "blazorwasm-minimal", @@ -5039,43 +5039,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "_framework/blazor.webassembly.js.gz", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", @@ -20092,6 +20055,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "_framework/Microsoft.AspNetCore.Authorization.wasm", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json index 6731e6c2cf98..5cefd007b538 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json @@ -175,27 +175,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\Client\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\blazor.publish.boot.json", - "SourceId": "BlazorWasmHosted60.Client", - "SourceType": "Project", - "ContentRoot": "${ProjectPath}\\Client\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\blazor.publish.boot.json" - }, { "Identity": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "SourceId": "BlazorWasmHosted60.Client", @@ -1447,7 +1426,7 @@ "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\blazor.publish.boot.json", + "RelatedAsset": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", @@ -1468,7 +1447,7 @@ "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\blazor.publish.boot.json", + "RelatedAsset": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", @@ -2296,6 +2275,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\linked\\System.Text.Json.dll" }, + { + "Identity": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "BlazorWasmHosted60.Client", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\Client\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\BlazorWasmHosted60.Client.styles.css", "SourceId": "BlazorWasmHosted60.Client", @@ -2620,43 +2620,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\blazor.publish.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "_framework/blazor.webassembly.js.gz", "AssetFile": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", @@ -10893,6 +10856,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "BlazorWasmHosted60.Client.styles.css", "AssetFile": "${ProjectPath}\\Client\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\BlazorWasmHosted60.Client.styles.css", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.files.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.files.json index 0af2db05a6a2..3040de35ed4b 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.files.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.files.json @@ -232,7 +232,6 @@ "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_CJK.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_EFIGS.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.native.js.gz", @@ -377,6 +376,7 @@ "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\icudt_no_CJK.dat.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\netstandard.wasm.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\netstandard.wasm.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Components.Forms.wasm", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Components.Web.wasm", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.staticwebassets.json index 80d768e2f769..83e556c7211b 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest.Publish.staticwebassets.json @@ -184,27 +184,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${RestorePath}\\microsoft.netcore.app.runtime.mono.browser-wasm\\${RuntimeVersion}\\runtimes\\browser-wasm\\native\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "SourceId": "blazorwasm-minimal", - "SourceType": "Computed", - "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" - }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "SourceId": "blazorwasm-minimal", @@ -3355,6 +3334,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\wwwroot\\index.html.br" }, + { + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "blazorwasm-minimal", + "SourceType": "Computed", + "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", "SourceId": "blazorwasm-minimal", @@ -5039,43 +5039,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "_framework/blazor.webassembly.js.gz", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", @@ -20092,6 +20055,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "_framework/Microsoft.AspNetCore.Authorization.wasm", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.files.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.files.json index 9d88ae08828e..66104eb50199 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.files.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.files.json @@ -235,7 +235,6 @@ "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_CJK.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_EFIGS.dat", "${ProjectPath}\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.js.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\dotnet.native.js.gz", @@ -384,6 +383,7 @@ "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\netstandard.wasm.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorwasm-minimal#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorwasm-minimal#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm-minimal.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\blazorwasm-minimal.bundle.scp.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\webcil\\publish\\Microsoft.AspNetCore.Authorization.wasm", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.staticwebassets.json index b82bd803f7c8..d8d7ec2e5c63 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_PublishMinimal_Works.Publish.staticwebassets.json @@ -184,27 +184,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${RestorePath}\\microsoft.netcore.app.runtime.mono.browser-wasm\\${RuntimeVersion}\\runtimes\\browser-wasm\\native\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "SourceId": "blazorwasm-minimal", - "SourceType": "Computed", - "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" - }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", "SourceId": "blazorwasm-minimal", @@ -3439,6 +3418,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\wwwroot\\index.html.br" }, + { + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "blazorwasm-minimal", + "SourceType": "Computed", + "ContentRoot": "${ProjectPath}\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm-minimal.styles.css", "SourceId": "blazorwasm-minimal", @@ -5165,43 +5165,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "_framework/blazor.webassembly.js.gz", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.webassembly.js.gz", @@ -21066,6 +21029,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "blazorwasm-minimal.styles.css", "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm-minimal.styles.css", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json index d745c620e67c..46832f320b8b 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json @@ -235,27 +235,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "SourceId": "blazorwasm", - "SourceType": "Project", - "ContentRoot": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json" - }, { "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\Fake-License.txt.gz", "SourceId": "blazorwasm", @@ -3574,6 +3553,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\publish\\serviceworkers\\my-service-worker.js.gz" }, + { + "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "blazorwasm", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm.styles.css", "SourceId": "blazorwasm", @@ -5484,43 +5484,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "Fake-License.txt.gz", "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\Fake-License.txt.gz", @@ -21553,6 +21516,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "blazorwasm.styles.css", "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm.styles.css", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json index d745c620e67c..46832f320b8b 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json @@ -235,27 +235,6 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\wwwroot\\_framework\\icudt_no_CJK.dat" }, - { - "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "SourceId": "blazorwasm", - "SourceType": "Project", - "ContentRoot": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", - "BasePath": "/", - "RelativePath": "_framework/blazor.boot.json", - "AssetKind": "Publish", - "AssetMode": "All", - "AssetRole": "Primary", - "AssetMergeBehavior": "", - "AssetMergeSource": "", - "RelatedAsset": "", - "AssetTraitName": "WasmResource", - "AssetTraitValue": "manifest", - "Fingerprint": "__fingerprint__", - "Integrity": "__integrity__", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json" - }, { "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\Fake-License.txt.gz", "SourceId": "blazorwasm", @@ -3574,6 +3553,27 @@ "CopyToPublishDirectory": "PreserveNewest", "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\publish\\serviceworkers\\my-service-worker.js.gz" }, + { + "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "SourceId": "blazorwasm", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\blazorwasm\\bin\\Debug\\${Tfm}\\publish\\wwwroot\\", + "BasePath": "/", + "RelativePath": "_framework/blazor.boot.json", + "AssetKind": "Publish", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "WasmResource", + "AssetTraitValue": "manifest", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json" + }, { "Identity": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm.styles.css", "SourceId": "blazorwasm", @@ -5484,43 +5484,6 @@ } ] }, - { - "Route": "_framework/blazor.boot.json", - "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", - "Selectors": [], - "ResponseHeaders": [ - { - "Name": "Accept-Ranges", - "Value": "bytes" - }, - { - "Name": "Cache-Control", - "Value": "no-cache" - }, - { - "Name": "Content-Length", - "Value": "__content-length__" - }, - { - "Name": "Content-Type", - "Value": "application/json" - }, - { - "Name": "ETag", - "Value": "__etag__" - }, - { - "Name": "Last-Modified", - "Value": "__last-modified__" - } - ], - "EndpointProperties": [ - { - "Name": "integrity", - "Value": "__integrity__" - } - ] - }, { "Route": "Fake-License.txt.gz", "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\Fake-License.txt.gz", @@ -21553,6 +21516,43 @@ } ] }, + { + "Route": "_framework/blazor.boot.json", + "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\publish.blazor.boot.json", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "application/json" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, { "Route": "blazorwasm.styles.css", "AssetFile": "${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\blazorwasm.styles.css", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs index 1a71394ad1c1..cad1511400b3 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs @@ -87,7 +87,7 @@ public void Publish_CrosstargetingTests_CanIncludeBrowserAssets() ExecuteCommand(restore).Should().Pass(); var publish = CreatePublishCommand(ProjectDirectory); - ExecuteCommandWithoutRestore(publish, "/bl", "/p:TargetFramework=net9.0").Should().Pass(); + ExecuteCommandWithoutRestore(publish, "/bl", "/p:TargetFramework=net10.0").Should().Pass(); var publishPath = publish.GetOutputDirectory(DefaultTfm).ToString(); var intermediateOutputPath = publish.GetIntermediateDirectory(DefaultTfm, "Debug").ToString(); diff --git a/test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs b/test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs index 6a69e3acfff2..6c759e50197b 100644 --- a/test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs +++ b/test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs @@ -108,7 +108,7 @@ public void TrimmingOptions_Are_Defaulted_Correctly_On_Aot_Apps(string targetFra public static IEnumerable SupportedTfms { get; } = new List { -#if NET9_0 +#if NET10_0 new object[] { ToolsetInfo.CurrentTargetFramework } #else #error If building for a newer TFM, please update the values above diff --git a/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs b/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs index 6d802d67c33a..add580802130 100644 --- a/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs +++ b/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs @@ -66,10 +66,23 @@ public AndConstraint HaveStdOutContaining(Func(this); } - public AndConstraint NotHaveStdOutContaining(string pattern) + public AndConstraint NotHaveStdOutContaining(string pattern, string[] ignoredPatterns = null) { - Execute.Assertion.ForCondition(!_commandResult.StdOut.Contains(pattern)) + string filteredStdOut = _commandResult.StdOut; + if (ignoredPatterns != null && ignoredPatterns.Length > 0) + { + foreach (var ignoredPattern in ignoredPatterns) + { + filteredStdOut = string.Join(Environment.NewLine, filteredStdOut + .Split(new[] { Environment.NewLine }, StringSplitOptions.None) + .Where(line => !line.Contains(ignoredPattern))); + } + } + + // Perform the assertion on the filtered output + Execute.Assertion.ForCondition(!filteredStdOut.Contains(pattern)) .FailWith(AppendDiagnosticsTo($"The command output contained a result it should not have contained: {pattern}{Environment.NewLine}")); + return new AndConstraint(this); } diff --git a/test/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs b/test/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs index 7d7879bf1f9e..8e3b6430fe51 100644 --- a/test/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs +++ b/test/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs @@ -5,6 +5,11 @@ namespace Microsoft.NET.TestFramework { public class WindowsOnlyRequiresMSBuildVersionFactAttribute : FactAttribute { + /// + /// Gets or sets the reason for potentially skipping the test if conditions are not met. + /// + public string Reason { get; set; } + public WindowsOnlyRequiresMSBuildVersionFactAttribute(string version) { if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) diff --git a/test/Microsoft.NET.TestFramework/ToolsetInfo.cs b/test/Microsoft.NET.TestFramework/ToolsetInfo.cs index 8b02baeee505..c12b13ac4fb5 100644 --- a/test/Microsoft.NET.TestFramework/ToolsetInfo.cs +++ b/test/Microsoft.NET.TestFramework/ToolsetInfo.cs @@ -8,10 +8,10 @@ namespace Microsoft.NET.TestFramework { public class ToolsetInfo { - public const string CurrentTargetFramework = "net9.0"; - public const string CurrentTargetFrameworkVersion = "9.0"; - public const string NextTargetFramework = "net10.0"; - public const string NextTargetFrameworkVersion = "10.0"; + public const string CurrentTargetFramework = "net10.0"; + public const string CurrentTargetFrameworkVersion = "10.0"; + public const string NextTargetFramework = "net11.0"; + public const string NextTargetFrameworkVersion = "11.0"; public const string LatestWinRuntimeIdentifier = "win"; public const string LatestLinuxRuntimeIdentifier = "linux"; diff --git a/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj b/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj index 82c186d067fa..501e8540e2b7 100644 --- a/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj +++ b/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj @@ -1,7 +1,7 @@ true - net9.0 + net10.0 © Microsoft Razor Test Microsoft diff --git a/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj b/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj index 322721e775ce..32623655bd7f 100644 --- a/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj +++ b/test/TestAssets/TestPackages/PackageLibraryDirectDependency/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj @@ -2,7 +2,7 @@ true - net9.0 + net10.0 © Microsoft Razor Test Microsoft diff --git a/test/TestAssets/TestPackages/PackageLibraryNoStaticAssets/PackageLibraryNoStaticAssets.csproj b/test/TestAssets/TestPackages/PackageLibraryNoStaticAssets/PackageLibraryNoStaticAssets.csproj index a5254a35970e..70a40b04bb11 100644 --- a/test/TestAssets/TestPackages/PackageLibraryNoStaticAssets/PackageLibraryNoStaticAssets.csproj +++ b/test/TestAssets/TestPackages/PackageLibraryNoStaticAssets/PackageLibraryNoStaticAssets.csproj @@ -2,7 +2,7 @@ true - net9.0 + net10.0 © Microsoft Razor Test Microsoft diff --git a/test/TestAssets/TestPackages/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj b/test/TestAssets/TestPackages/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj index 322721e775ce..32623655bd7f 100644 --- a/test/TestAssets/TestPackages/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj +++ b/test/TestAssets/TestPackages/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj @@ -2,7 +2,7 @@ true - net9.0 + net10.0 © Microsoft Razor Test Microsoft diff --git a/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/Existing/Project1/Project1.csproj b/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/Existing/Project1/Project1.csproj index 36dd7f3c7e78..92e46ddaccf8 100644 --- a/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/Existing/Project1/Project1.csproj +++ b/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/Existing/Project1/Project1.csproj @@ -2,7 +2,7 @@ Exe - $(CurrentTargetFramework) + net9.0 diff --git a/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/ExistingWithRename/Project1/Project1.csproj b/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/ExistingWithRename/Project1/Project1.csproj index 36dd7f3c7e78..92e46ddaccf8 100644 --- a/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/ExistingWithRename/Project1/Project1.csproj +++ b/test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/ExistingWithRename/Project1/Project1.csproj @@ -2,7 +2,7 @@ Exe - $(CurrentTargetFramework) + net9.0 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 - - + + +