From 5619cbddc5af59d86d487c35eea2e5a6cc693a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Fri, 20 Nov 2026 12:55:03 +0100 Subject: [PATCH 1/5] Remove Mono library test matrix support Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/libraries/helix.yml | 1 - eng/testing/linker/project.csproj.template | 4 - eng/testing/linker/trimmingTests.targets | 4 - .../performance/android_scenarios.proj | 19 --- eng/testing/performance/blazor_perf.proj | 9 +- eng/testing/tests.android.targets | 2 - eng/testing/tests.browser.targets | 10 +- eng/testing/tests.ioslike.targets | 10 +- eng/testing/tests.mobile.targets | 9 +- eng/testing/tests.props | 5 - eng/testing/tests.targets | 14 +- eng/testing/tests.wasi.targets | 18 +-- eng/testing/tests.wasm.targets | 31 +--- .../Net/Prerequisites/LocalEchoServer.props | 8 +- src/libraries/Directory.Build.props | 7 +- src/libraries/Directory.Build.targets | 3 +- ...oft.Extensions.Caching.Memory.Tests.csproj | 2 - ...em.ComponentModel.Composition.Tests.csproj | 2 - ...m.Diagnostics.FileVersionInfo.Tests.csproj | 5 - .../System.Diagnostics.Tracing.Tests.csproj | 8 - .../tests/System.Formats.Nrbf.Tests.csproj | 2 - .../System.Private.CoreLib.Shared.projitems | 5 +- .../src/Tests/Constructor/ConstructorTests.cs | 10 +- .../tests/src/Tests/Method/MethodTests.cs | 10 +- ....Runtime.InteropServices.JavaScript.csproj | 17 +- ...me.InteropServices.JavaScript.Tests.csproj | 6 +- .../System.Runtime.Intrinsics.Tests.csproj | 2 +- .../tests/System.Runtime.Loader.Tests.csproj | 9 +- .../src/System.Runtime.Numerics.csproj | 3 - .../System.Diagnostics.Debug.Tests.csproj | 2 - .../System.Runtime.Tests.csproj | 2 - .../System/Reflection/MethodBaseTests.cs | 2 - .../System/Reflection/MethodBodyTests.cs | 2 - .../MethodImplAttributeTests.cs | 13 +- .../System.Threading.Tasks.Tests.csproj | 4 +- src/libraries/externals.csproj | 23 +-- src/libraries/pretest.proj | 5 +- src/libraries/sendtohelix-browser.targets | 11 +- src/libraries/sendtohelix-mobile.targets | 23 +-- src/libraries/sendtohelix-wasi.targets | 8 +- src/libraries/sendtohelix-wasm.targets | 3 +- src/libraries/sendtohelix.proj | 9 +- src/libraries/sendtohelixhelp.proj | 19 +-- src/libraries/tests.proj | 148 ++---------------- 44 files changed, 86 insertions(+), 423 deletions(-) diff --git a/eng/pipelines/libraries/helix.yml b/eng/pipelines/libraries/helix.yml index 7d78f168526091..b9dd7ad8f228f4 100644 --- a/eng/pipelines/libraries/helix.yml +++ b/eng/pipelines/libraries/helix.yml @@ -27,7 +27,6 @@ steps: /p:TargetRuntimeIdentifier=${{ parameters.targetRid }} /p:Configuration=${{ coalesce(parameters.helixBuildConfig, parameters.buildConfig) }} /p:TargetOS=${{ parameters.osGroup }} - /p:MonoForceInterpreter=${{ parameters.interpreter }} /p:TestScope=${{ parameters.testScope }} /p:TestRunNamePrefixSuffix=${{ parameters.testRunNamePrefixSuffix }} /p:HelixBuild=$(Build.BuildNumber) diff --git a/eng/testing/linker/project.csproj.template b/eng/testing/linker/project.csproj.template index e52a544f8087a0..d686eff578384b 100644 --- a/eng/testing/linker/project.csproj.template +++ b/eng/testing/linker/project.csproj.template @@ -23,7 +23,6 @@ {TargetFramework} Exe {NetCoreAppMaximumVersion} - {UseMonoRuntime} {RuntimeIdentifier} true @@ -32,14 +31,11 @@ true - {MonoAOTCompilerDir} {MonoProjectRoot} {BrowserProjectRoot} {WasmProjectRoot} {WasiProjectRoot} - {MonoAOTCompilerTasksAssemblyPath} {WasmAppBuilderTasksAssemblyPath} - {MonoTargetsTasksAssemblyPath} {MicrosoftNetCoreAppRuntimePackRidDir} <_WebAssemblyPropsFile>{WasmSdkPackBuildPath}Microsoft.NET.Sdk.WebAssembly.Browser.props <_WebAssemblyTargetsFile>{WasmSdkPackBuildPath}Microsoft.NET.Sdk.WebAssembly.Browser.targets diff --git a/eng/testing/linker/trimmingTests.targets b/eng/testing/linker/trimmingTests.targets index eee97561702308..eafbfb273699c5 100644 --- a/eng/testing/linker/trimmingTests.targets +++ b/eng/testing/linker/trimmingTests.targets @@ -95,7 +95,6 @@ Lines="$([System.IO.File]::ReadAllText('$(ProjectTemplate)') .Replace('{TargetFramework}', '%(TestConsoleApps.TargetFramework)') .Replace('{NetCoreAppMaximumVersion}', '$(NetCoreAppMaximumVersion)') - .Replace('{UseMonoRuntime}','$(UseMonoRuntime)') .Replace('{RuntimeIdentifier}','%(TestConsoleApps.TestRuntimeIdentifier)') .Replace('{PublishAot}','$(RunNativeAotTestApps)') .Replace('{ExtraTrimmerArgs}', '%(TestConsoleApps.ExtraTrimmerArgs)') @@ -105,13 +104,10 @@ .Replace('{RuntimeHostConfigurationOptions}', '$(_runtimeHostConfigurationOptionsString)') .Replace('{AdditionalProjectReferences}', '$(_additionalProjectReferencesString)') .Replace('{RepositoryEngineeringDir}', '$(RepositoryEngineeringDir)') - .Replace('{MonoAOTCompilerDir}', '$(MonoAOTCompilerDir)') .Replace('{MonoProjectRoot}', '$(MonoProjectRoot)') .Replace('{BrowserProjectRoot}', '$(BrowserProjectRoot)') .Replace('{WasmProjectRoot}', '$(WasmProjectRoot)') .Replace('{WasiProjectRoot}', '$(WasiProjectRoot)') - .Replace('{MonoAOTCompilerTasksAssemblyPath}', '$(MonoAOTCompilerTasksAssemblyPath)') - .Replace('{MonoTargetsTasksAssemblyPath}', '$(MonoTargetsTasksAssemblyPath)') .Replace('{WasmAppBuilderTasksAssemblyPath}', '$(WasmAppBuilderTasksAssemblyPath)') .Replace('{MicrosoftNetCoreAppRuntimePackRidDir}', '$(MicrosoftNetCoreAppRuntimePackRidDir)') .Replace('{WasmSdkPackBuildPath}', '$(MonoProjectRoot)nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/') diff --git a/eng/testing/performance/android_scenarios.proj b/eng/testing/performance/android_scenarios.proj index 4d562a70e757d6..73550b0f17f7af 100644 --- a/eng/testing/performance/android_scenarios.proj +++ b/eng/testing/performance/android_scenarios.proj @@ -45,24 +45,5 @@ $(Python) test.py buildtime --scenario-name "%(Identity)" $(ScenarioArgs) --binlog-path msbuild.binlog $(Python) post.py - diff --git a/eng/testing/performance/blazor_perf.proj b/eng/testing/performance/blazor_perf.proj index bcad56a4be50b8..f452ed3f1ce551 100644 --- a/eng/testing/performance/blazor_perf.proj +++ b/eng/testing/performance/blazor_perf.proj @@ -10,7 +10,7 @@ $(HelixPreCommands);chmod +x $HELIX_WORKITEM_PAYLOAD/SOD/SizeOnDisk <_MSBuildArgs>/p:_TrimmerDumpDependencies=true;/warnaserror:NU1602,NU1604 - --has-workload --readonly-dotnet --msbuild "$(_MSBuildArgs)" --msbuild-static AdditionalMonoLinkerOptions=%27"%24(AdditionalMonoLinkerOptions) --dump-dependencies"%27 --binlog $(LogDirectory)blazor_publish.binlog + --has-workload --readonly-dotnet --msbuild "$(_MSBuildArgs)" --binlog $(LogDirectory)blazor_publish.binlog $(EnvVars) $(Python) pre.py publish $(PublishArgs) @@ -87,12 +87,5 @@ $(Python) post.py --readonly-dotnet 1:00 - - <_PublishArgsWithAOT>--msbuild "$(_MSBuildArgs);/p:RunAOTCompilation=true" - $(WorkItemDirectory) - cd $(BlazorLocalizedDirectory) && $(PublishCommand) $(_PublishArgsWithAOT) -f $(PerflabTargetFrameworks) && $(Python) test.py sod --scenario-name "%(Identity)" --dirs $(PizzaAppPubLocation) $(ScenarioArgs) - $(Python) post.py --readonly-dotnet - 1:00 - diff --git a/eng/testing/tests.android.targets b/eng/testing/tests.android.targets index f20521db7770bc..20d279c2d2ea5c 100644 --- a/eng/testing/tests.android.targets +++ b/eng/testing/tests.android.targets @@ -63,7 +63,6 @@ - <_InternalForceInterpret>true <_IsNative>true @@ -71,7 +70,6 @@ <_SatelliteAssemblies Include="$(PublishDir)\**\*.resources.dll" /> - <_InternalForceInterpret Condition="'$(UseMonoJustInterp)' == 'true' and '%(FileName)%(Extension)' != 'System.Private.CoreLib.dll'">true <_IsNative>false diff --git a/eng/testing/tests.browser.targets b/eng/testing/tests.browser.targets index a2eae35f007daf..93d79959a15547 100644 --- a/eng/testing/tests.browser.targets +++ b/eng/testing/tests.browser.targets @@ -14,7 +14,7 @@ false false - true + true <_WasmInTreeDefaults>false false @@ -24,7 +24,7 @@ ReadWasmNativeAssetsFromFileSystem; UpdateWasmNativeAssetOriginalItemSpec - + $(ResolveWasmOutputsDependsOn); AddTestRunnersToReferenceCopyLocalPaths @@ -93,7 +93,7 @@ - + true true true @@ -105,7 +105,7 @@ - + false @@ -209,7 +209,6 @@ <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) /p:TasksConfiguration=$(TasksConfiguration) - <_AOTBuildCommand>$(_AOTBuildCommand) /p:RunAOTCompilation=$(RunAOTCompilation) <_AOTBuildCommand>$(_AOTBuildCommand) $(_ShellCommandSeparator) cd wasm_build/AppBundle $(_AOTBuildCommand) @@ -386,7 +385,6 @@ - diff --git a/eng/testing/tests.ioslike.targets b/eng/testing/tests.ioslike.targets index 1a8e9e7456b50d..7a79e6c83c5ccc 100644 --- a/eng/testing/tests.ioslike.targets +++ b/eng/testing/tests.ioslike.targets @@ -24,7 +24,7 @@ - + @@ -41,10 +41,10 @@ <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) - <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:RunAOTCompilation=$(RunAOTCompilation) /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:UseMonoRuntime=$(UseMonoRuntime) /p:MonoForceInterpreter=$(MonoForceInterpreter) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) + <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) <_AOTBuildCommand Condition="'$(NativeLib)' != ''">$(_AOTBuildCommand) /p:NativeLib=$(NativeLib) /p:BundlesResources=$(BundlesResources) /p:ForceLibraryModeGenerateAppBundle=$(ForceLibraryModeGenerateAppBundle) - <_AOTBuildCommand Condition="'$(UseMonoRuntime)' != 'true' and '$(UseNativeAOTRuntime)' != 'true'">$(_AOTBuildCommand) /p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunContainerFormat=macho /p:StripSymbols=true + <_AOTBuildCommand Condition="'$(UseNativeAOTRuntime)' != 'true'">$(_AOTBuildCommand) /p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunContainerFormat=macho /p:StripSymbols=true <_AOTBuildCommand>$(_AOTBuildCommand) <_ResetSimulatorSwitch Condition="('$(TargetOS)' == 'iossimulator' or '$(TargetOS)' == 'tvossimulator') and '$(IncludesTestRunner)' == 'true'">--reset-simulator @@ -150,10 +150,8 @@ <_ApplePropertyNames Include="IncludesTestRunner" /> <_ApplePropertyNames Include="EnableAppSandbox" /> <_ApplePropertyNames Include="MainLibraryFileName" /> - <_ApplePropertyNames Include="ShouldILStrip" /> <_ApplePropertyNames Include="PublishReadyToRunStripILBodies" /> <_ApplePropertyNames Include="UseConsoleUITemplate" /> - <_ApplePropertyNames Include="UseRuntimeComponents" /> <_ApplePropertyNames Include="DynamicCodeSupport" /> <_ApplePropertyNames Include="EventSourceSupport" /> <_ApplePropertyNames Include="_SuppressNativeLibEventSourceWarning" /> @@ -220,7 +218,6 @@ - <_InternalForceInterpret>true <_IsNative>true @@ -228,7 +225,6 @@ <_SatelliteAssemblies Include="$(PublishDir)\**\*.resources.dll" /> - <_InternalForceInterpret Condition="'$(UseMonoJustInterp)' == 'true' and '%(FileName)%(Extension)' != 'System.Private.CoreLib.dll'">true <_IsNative>false diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets index 92ca4f036c62bb..b7f5beecdeedef 100644 --- a/eng/testing/tests.mobile.targets +++ b/eng/testing/tests.mobile.targets @@ -16,8 +16,7 @@ - true - true + true @@ -40,7 +39,7 @@ - false + false <_DefaultValueAttributeSupport Condition="'$(OverrideDefaultValueAndDesignerHostSupport)' == 'true'">true <_DesignerHostSupport Condition="'$(OverrideDefaultValueAndDesignerHostSupport)' == 'true'">true @@ -89,10 +88,6 @@ - - <_MobileIntermediateOutputPath>$(IntermediateOutputPath)mobile - - diff --git a/eng/testing/tests.props b/eng/testing/tests.props index 5ff71ec66cc51f..c5c69a83140649 100644 --- a/eng/testing/tests.props +++ b/eng/testing/tests.props @@ -29,11 +29,6 @@ true - - - - - diff --git a/eng/testing/tests.targets b/eng/testing/tests.targets index 76637130d65a3f..b18649a434d298 100644 --- a/eng/testing/tests.targets +++ b/eng/testing/tests.targets @@ -4,8 +4,7 @@ true + and '$(TargetsAppleMobile)' != 'true'">true @@ -65,15 +64,6 @@ <_withoutCategories Condition="!$(_withCategories.Contains('failing'))">$(_withoutCategories);failing - - - <_MonoAotCrossCompilerPath>$([MSBuild]::NormalizePath($(MonoAotCrossDir), 'mono-aot-cross')) - <_MonoAotCrossCompilerPath Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">$(_MonoAotCrossCompilerPath).exe - - - - - PrepareForRun @@ -182,7 +172,7 @@ TEST_ARCH=$(_AndroidArchitecture) $(RunTestsCommand) --runtime-path "$(NetCoreAppCurrentTestHostPath.TrimEnd('\/'))" - $(RunTestsCommand) --rsp-file "$(TestRspFile)" + $(RunTestsCommand) --rsp-file "$(TestRspFile)" diff --git a/eng/testing/tests.wasi.targets b/eng/testing/tests.wasi.targets index 2fae0a6cd517a3..75c90c74edd47b 100644 --- a/eng/testing/tests.wasi.targets +++ b/eng/testing/tests.wasi.targets @@ -23,7 +23,7 @@ - + false @@ -36,13 +36,11 @@ <_AppArgs Condition="'$(WasmSingleFileBundle)' == 'true'">$([System.IO.Path]::GetFileNameWithoutExtension('$(WasmMainAssemblyFileName)')).wasm - - <_AppArgs Condition="'$(WasmSingleFileBundle)' != 'true' and '$(RuntimeFlavor)' != 'CoreCLR'">dotnet.wasm WasmTestRunner - <_AppArgs Condition="'$(WasmSingleFileBundle)' != 'true' and '$(RuntimeFlavor)' == 'CoreCLR'">managed/corerun managed/WasmTestRunner.dll + <_AppArgs Condition="'$(WasmSingleFileBundle)' != 'true'">managed/corerun managed/WasmTestRunner.dll <_AppArgs Condition="'$(IsFunctionalTest)' != 'true' and '$(WasmSingleFileBundle)' != 'true'">$(_AppArgs) managed/$(AssemblyName).dll <_AppArgs Condition="'$(IsFunctionalTest)' != 'true' and '$(WasmSingleFileBundle)' == 'true'">$(_AppArgs) $(AssemblyName).dll @@ -73,8 +71,8 @@ - <_XHarnessArgs Condition="'$(RuntimeFlavor)' == 'CoreCLR'">$(_XHarnessArgs) --engine-arg=-W --engine-arg=exceptions=y - <_XHarnessArgs Condition="'$(RuntimeFlavor)' == 'CoreCLR'">$(_XHarnessArgs) --engine-arg=--env --engine-arg=CORE_ROOT=/managed + <_XHarnessArgs>$(_XHarnessArgs) --engine-arg=-W --engine-arg=exceptions=y + <_XHarnessArgs>$(_XHarnessArgs) --engine-arg=--env --engine-arg=CORE_ROOT=/managed <_XHarnessArgs Condition="'$(WasmXHarnessArgsCli)' != ''" >$(_XHarnessArgs) $(WasmXHarnessArgsCli) <_InvariantGlobalization Condition="'$(InvariantGlobalization)' == 'true'">--env=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true @@ -91,7 +89,6 @@ <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) /p:TasksConfiguration=$(TasksConfiguration) - <_AOTBuildCommand>$(_AOTBuildCommand) /p:RunAOTCompilation=$(RunAOTCompilation) <_AOTBuildCommand>$(_AOTBuildCommand) $(_ShellCommandSeparator) cd wasm_build/AppBundle $(_AOTBuildCommand) @@ -165,7 +162,6 @@ Condition="'%(WasmFilesToIncludeFromPublishDir.Identity)' != ''" /> - @@ -209,7 +205,7 @@ build agent otherwise. The zip still has the composed module that runs. --> + Condition="'$(ContinuousIntegrationBuild)' == 'true'"> diff --git a/eng/testing/tests.wasm.targets b/eng/testing/tests.wasm.targets index a19d9f98c62df6..a133180fc28fd7 100644 --- a/eng/testing/tests.wasm.targets +++ b/eng/testing/tests.wasm.targets @@ -18,10 +18,7 @@ - true - false true full @@ -37,12 +34,11 @@ true - 04:00:00 - 01:30:00 - 00:30:00 + 04:00:00 + 01:30:00 $(BundleDir) $(MSBuildThisFileDirectory) @@ -78,26 +74,16 @@ - - <_WasmIntrinsicsSubstitutions Condition="'$(WasmEnableSIMD)' != 'false'">WasmIntrinsics - <_WasmIntrinsicsSubstitutions Condition="'$(WasmEnableSIMD)' == 'false'">NoWasmIntrinsics - <_ExtraTrimmerArgs Condition="'$(RuntimeFlavor)' != 'CoreCLR'">$(_ExtraTrimmerArgs) --substitutions "$(BrowserProjectRoot)build\ILLink.Substitutions.$(_WasmIntrinsicsSubstitutions).xml" - - <_AOT_InternalForceInterpretAssemblies Include="@(HighAotMemoryUsageAssembly)" /> - - WasmTriggerPublishApp @@ -119,15 +105,12 @@ - - - <_MainAssemblyPath Condition="'%(WasmAssembliesToBundle.FileName)' == $(AssemblyName) and '%(WasmAssembliesToBundle.Extension)' == '.dll'">%(WasmAssembliesToBundle.Identity) @@ -186,8 +169,6 @@ --> - <_WasmItemsToPass Include="@(_AOT_InternalForceInterpretAssemblies)" OriginalItemName__="_AOT_InternalForceInterpretAssemblies" /> - diff --git a/src/libraries/Common/tests/System/Net/Prerequisites/LocalEchoServer.props b/src/libraries/Common/tests/System/Net/Prerequisites/LocalEchoServer.props index b27f87ed514252..98dba56fcb6958 100644 --- a/src/libraries/Common/tests/System/Net/Prerequisites/LocalEchoServer.props +++ b/src/libraries/Common/tests/System/Net/Prerequisites/LocalEchoServer.props @@ -25,17 +25,15 @@ - + diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 7238a06d109934..45ec146663aab2 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -11,7 +11,7 @@ - + $(AfterMicrosoftNETSdkTargets);$(Crossgen2SdkOverrideTargetsPath) @@ -103,11 +103,6 @@ true - - - --interpreter - - diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index e68acacaec38a4..21871b3b70fa04 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -145,8 +145,7 @@ true + and '$(TargetsAppleMobile)' != 'true'">true diff --git a/src/libraries/Microsoft.Extensions.Caching.Memory/tests/Microsoft.Extensions.Caching.Memory.Tests.csproj b/src/libraries/Microsoft.Extensions.Caching.Memory/tests/Microsoft.Extensions.Caching.Memory.Tests.csproj index a1aea5f01f4ee6..5d5caed78b4900 100644 --- a/src/libraries/Microsoft.Extensions.Caching.Memory/tests/Microsoft.Extensions.Caching.Memory.Tests.csproj +++ b/src/libraries/Microsoft.Extensions.Caching.Memory/tests/Microsoft.Extensions.Caching.Memory.Tests.csproj @@ -3,8 +3,6 @@ $(NetCoreAppCurrent);$(NetFrameworkCurrent) true - - true diff --git a/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj b/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj index 16bcfea0b434d0..e2ba70369b4d6c 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj +++ b/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj @@ -2,8 +2,6 @@ true $(NetCoreAppCurrent) - - true false false diff --git a/src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj b/src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj index d550192e9274c2..01f3e36aceabee 100644 --- a/src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj +++ b/src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj @@ -19,11 +19,6 @@ Assembly1.cs - - - - - diff --git a/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj b/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj index 85df35f6731827..835551934d5260 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj +++ b/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj @@ -9,14 +9,6 @@ false $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) - - - true - - - - - diff --git a/src/libraries/System.Formats.Nrbf/tests/System.Formats.Nrbf.Tests.csproj b/src/libraries/System.Formats.Nrbf/tests/System.Formats.Nrbf.Tests.csproj index 0ed91d1cce808f..723ac62a3b9abb 100644 --- a/src/libraries/System.Formats.Nrbf/tests/System.Formats.Nrbf.Tests.csproj +++ b/src/libraries/System.Formats.Nrbf/tests/System.Formats.Nrbf.Tests.csproj @@ -3,8 +3,6 @@ $(NetCoreAppCurrent);$(NetFrameworkCurrent) true - - true false false diff --git a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems index 3fbe3e5ff22a1b..69378d095e636f 100644 --- a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems +++ b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems @@ -1449,12 +1449,9 @@ - + Common\Interop\Browser\Interop.Locale.CoreCLR.cs - - Common\Interop\Browser\Interop.Locale.Mono.cs - Common\Interop\Interop.Calendar.cs diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Constructor/ConstructorTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Constructor/ConstructorTests.cs index a87a1d0b001cff..90e4595f9ac003 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Constructor/ConstructorTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Constructor/ConstructorTests.cs @@ -31,15 +31,7 @@ private static void TestConstructors1Worker(Type t) Assert.False(c.IsConstructedGenericMethod()); Assert.False(c.IsGenericMethod); Assert.Equal(MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName, c.Attributes); - if (c.MethodImplementationFlags.HasFlag(MethodImplAttributes.NoInlining)) - { - // when the assembly was processed with ILStrip, the NoInlining flag is set - Assert.Equal(MethodImplAttributes.IL | MethodImplAttributes.NoInlining, c.MethodImplementationFlags); - } - else - { - Assert.Equal(MethodImplAttributes.IL, c.MethodImplementationFlags); - } + Assert.Equal(MethodImplAttributes.IL, c.MethodImplementationFlags); Assert.Equal(CallingConventions.Standard | CallingConventions.HasThis, c.CallingConvention); ParameterInfo[] ps = c.GetParameters(); diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Method/MethodTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Method/MethodTests.cs index de598a64e3c01c..6f0f25ae95a637 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Method/MethodTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Method/MethodTests.cs @@ -30,15 +30,7 @@ private static void TestMethods1Worker(Type t) Assert.False(m.IsConstructedGenericMethod()); Assert.False(m.IsGenericMethod); Assert.Equal(MethodAttributes.Public | MethodAttributes.HideBySig, m.Attributes); - if (m.MethodImplementationFlags.HasFlag(MethodImplAttributes.NoInlining)) - { - // when the assembly was processed with ILStrip, the NoInlining flag is set - Assert.Equal(MethodImplAttributes.IL | MethodImplAttributes.NoInlining, m.MethodImplementationFlags); - } - else - { - Assert.Equal(MethodImplAttributes.IL, m.MethodImplementationFlags); - } + Assert.Equal(MethodImplAttributes.IL, m.MethodImplementationFlags); Assert.Equal(CallingConventions.Standard | CallingConventions.HasThis, m.CallingConvention); Type theT = t.GetGenericArguments()[0]; diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj index cda13ff5964655..1248b4b0520874 100644 --- a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj @@ -11,12 +11,10 @@ $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) SR.SystemRuntimeInteropServicesJavaScript_PlatformNotSupported true - true - false + true $(DefineConstants);FEATURE_WASM_MANAGED_THREADS $(DefineConstants);ENABLE_JS_INTEROP_BY_VALUE - $(DefineConstants);MONO - $(DefineConstants);CORECLR + $(DefineConstants);CORECLR true @@ -26,12 +24,10 @@ - - - + + - - + @@ -42,8 +38,7 @@ - - + diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj b/src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj index 3075a648308293..10a47a5e511ab9 100644 --- a/src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj @@ -1,6 +1,6 @@ - + @@ -23,9 +23,9 @@ false - true + true - + diff --git a/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj b/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj index 639e122cefb1ea..ce3123e7136ed1 100644 --- a/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj +++ b/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj @@ -5,7 +5,7 @@ true true $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser;$(NetCoreAppCurrent)-wasi - relaxed-simd + relaxed-simd false $(Features.Replace('nullablePublicOnly', '') diff --git a/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj b/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj index 159f30c136ff96..2c0db6785b9eea 100644 --- a/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj +++ b/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj @@ -18,12 +18,11 @@ false - + - - + @@ -76,7 +75,7 @@ - + @@ -127,7 +126,7 @@ diff --git a/src/libraries/System.Runtime.Numerics/src/System.Runtime.Numerics.csproj b/src/libraries/System.Runtime.Numerics/src/System.Runtime.Numerics.csproj index 03a55283adcf64..667a8cccbb1096 100644 --- a/src/libraries/System.Runtime.Numerics/src/System.Runtime.Numerics.csproj +++ b/src/libraries/System.Runtime.Numerics/src/System.Runtime.Numerics.csproj @@ -5,9 +5,6 @@ System.Numerics true false - - $(DefineConstants);MONO diff --git a/src/libraries/System.Runtime/tests/System.Diagnostics.Debug.Tests/System.Diagnostics.Debug.Tests.csproj b/src/libraries/System.Runtime/tests/System.Diagnostics.Debug.Tests/System.Diagnostics.Debug.Tests.csproj index f4563a08d73073..83a87200825fba 100644 --- a/src/libraries/System.Runtime/tests/System.Diagnostics.Debug.Tests/System.Diagnostics.Debug.Tests.csproj +++ b/src/libraries/System.Runtime/tests/System.Diagnostics.Debug.Tests/System.Diagnostics.Debug.Tests.csproj @@ -3,8 +3,6 @@ System.Diagnostics.Tests $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix true - - false false diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System.Runtime.Tests.csproj b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System.Runtime.Tests.csproj index 05ed95c26068cf..07009548e2c9e7 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System.Runtime.Tests.csproj +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System.Runtime.Tests.csproj @@ -14,8 +14,6 @@ true - - false false false diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBaseTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBaseTests.cs index 9d69ce855c6a41..54c452bb8d84f3 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBaseTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBaseTests.cs @@ -57,8 +57,6 @@ public static void TestMethodBody() MethodBase mbase = typeof(MethodBaseTests).GetMethod("MyOtherMethod", BindingFlags.Static | BindingFlags.Public); MethodBody mb = mbase.GetMethodBody(); var il = mb.GetILAsByteArray(); - if (il?.Length == 1 && il[0] == 0x2a) // ILStrip replaces method bodies with the 'ret' IL opcode i.e. 0x2a - throw new SkipTestException("The method body was processed using ILStrip."); var codeSize = mb.GetILAsByteArray().Length; Assert.True(mb.InitLocals); // local variables are initialized diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBodyTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBodyTests.cs index eb6f4b36fab9d5..1969622859b934 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBodyTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/MethodBodyTests.cs @@ -19,8 +19,6 @@ public static void Test_MethodBody_ExceptionHandlingClause() MethodBody mb = mi.GetMethodBody(); var il = mb.GetILAsByteArray(); - if (il?.Length == 1 && il[0] == 0x2a) // ILStrip replaces method bodies with the 'ret' IL opcode i.e. 0x2a - throw new SkipTestException("The method body was processed using ILStrip."); Assert.True(mb.InitLocals); // local variables are initialized #if DEBUG diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Runtime/CompilerServices/MethodImplAttributeTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Runtime/CompilerServices/MethodImplAttributeTests.cs index e5920b896e6f12..9f3ecf21fe0ccb 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Runtime/CompilerServices/MethodImplAttributeTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Runtime/CompilerServices/MethodImplAttributeTests.cs @@ -13,17 +13,8 @@ public static class MethodImplAttributeTests public static void AggressiveOptimizationTest() { MethodImplAttributes implAttributes = MethodBase.GetCurrentMethod().MethodImplementationFlags; - if (implAttributes.HasFlag(MethodImplAttributes.NoInlining)) - { - // when the assembly was processed with ILStrip, the NoInlining flag is set - Assert.Equal(MethodImplAttributes.AggressiveOptimization | MethodImplAttributes.NoInlining, implAttributes); - Assert.Equal(MethodImplOptions.AggressiveOptimization | MethodImplOptions.NoInlining, (MethodImplOptions)implAttributes); - } - else - { - Assert.Equal(MethodImplAttributes.AggressiveOptimization, implAttributes); - Assert.Equal(MethodImplOptions.AggressiveOptimization, (MethodImplOptions)implAttributes); - } + Assert.Equal(MethodImplAttributes.AggressiveOptimization, implAttributes); + Assert.Equal(MethodImplOptions.AggressiveOptimization, (MethodImplOptions)implAttributes); } } } diff --git a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj index 57f8c0c09a760f..1ce6fbbea9ae10 100644 --- a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj +++ b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj @@ -59,10 +59,10 @@ - + - + diff --git a/src/libraries/externals.csproj b/src/libraries/externals.csproj index 9c2d21daafac43..9241aa7857e0f4 100644 --- a/src/libraries/externals.csproj +++ b/src/libraries/externals.csproj @@ -1,6 +1,6 @@ - true + true $(NetCoreAppCurrent) false @@ -84,7 +84,7 @@ + Condition="'$(UseNativeAotCoreLib)' != 'true'"> @@ -123,7 +123,7 @@ + Condition="'$(TargetOS)' == 'browser'"> @@ -132,21 +132,4 @@ - - - - - - - - - - - - diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj index afb73740d88a73..ad67f678a4fa34 100644 --- a/src/libraries/pretest.proj +++ b/src/libraries/pretest.proj @@ -36,12 +36,9 @@ - + Condition="'$(TargetOS)' == 'browser' or '$(TargetOS)' == 'wasi'" /> diff --git a/src/libraries/sendtohelix-browser.targets b/src/libraries/sendtohelix-browser.targets index 81222fc356b9cd..0c4d4c84f3884a 100644 --- a/src/libraries/sendtohelix-browser.targets +++ b/src/libraries/sendtohelix-browser.targets @@ -33,9 +33,8 @@ <_ShippingPackagesPath>$([MSBuild]::NormalizeDirectory($(ArtifactsDir), 'packages', $(Configuration), 'Shipping')) - $(Scenario)-CLR-ST- - $(Scenario)-MONO-ST- - $(Scenario)-MONO-MT- + $(Scenario)-CLR-ST- + $(Scenario)-CLR-MT- $(_XUnitTraitArg) -notrait category=mono - <_XUnitTraitArg Condition="'$(RuntimeFlavor)' != 'CoreCLR'">$(_XUnitTraitArg) -notrait category=coreclr + <_XUnitTraitArg>$(_XUnitTraitArg) -notrait category=mono @@ -285,10 +283,7 @@ the raw pack layout as a correlation payload. --> - - - - $(Scenario)-CLR-ST- + + $(Scenario)-CLR-ST- wasmtime true @@ -137,9 +136,6 @@ - - - diff --git a/src/libraries/sendtohelix-wasm.targets b/src/libraries/sendtohelix-wasm.targets index faf692017b9161..944d05410fe304 100644 --- a/src/libraries/sendtohelix-wasm.targets +++ b/src/libraries/sendtohelix-wasm.targets @@ -19,8 +19,7 @@ WBT-NoFingerprint- WBT-JavascriptBundler- WBT-WasmOpt- - $(WorkItemPrefix)MONO- - $(WorkItemPrefix)CLR- + $(WorkItemPrefix)CLR- diff --git a/src/libraries/sendtohelix.proj b/src/libraries/sendtohelix.proj index cb678be7d1d90b..165341e4edcba6 100644 --- a/src/libraries/sendtohelix.proj +++ b/src/libraries/sendtohelix.proj @@ -88,7 +88,6 @@ <_TestUsingWorkloadsValues Include="false" /> <_TestUsingWorkloadsValues Include="true" /> - <_TestUsingWebcilValues Include="true;false" Condition="'$(TargetOS)' == 'browser' and '$(RuntimeFlavor)' == 'Mono'" /> <_TestUsingFingerprintingValues Include="true;false" Condition="'$(TargetOS)' == 'browser'" /> @@ -116,9 +115,8 @@ false - - <_TestUsingCrossProductValues Include="WasmRunWasmOpt" Condition="'$(TargetOS)' == 'browser' and '$(RuntimeFlavor)' == 'CoreCLR'"> + + <_TestUsingCrossProductValues Include="WasmRunWasmOpt" Condition="'$(TargetOS)' == 'browser'"> true true true @@ -226,8 +224,7 @@ - + diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index cfee17a795bd16..84d90d8b702459 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -40,9 +40,8 @@ <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(Scenario)' == 'interpmode1'">01:00:00 <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetsAppleMobile)' == 'true'">01:15:00 <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'android'">00:30:00 - <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'browser' and '$(RuntimeFlavor)' == 'CoreCLR' and ('$(TestScope)' == 'outerloop' or '$(TestScope)' == 'all')">04:30:00 - <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'browser' and '$(RuntimeFlavor)' == 'CoreCLR'">01:30:00 - <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'browser'">00:30:00 + <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'browser' and ('$(TestScope)' == 'outerloop' or '$(TestScope)' == 'all')">04:30:00 + <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'browser'">01:30:00 <_workItemTimeout Condition="'$(_workItemTimeout)' == '' and '$(TargetOS)' == 'wasi'">00:30:00 <_workItemTimeout Condition="'$(Scenario)' == '' and '$(_workItemTimeout)' == '' and ('$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'arm')">00:45:00 <_workItemTimeout Condition="'$(Scenario)' != '' and '$(_workItemTimeout)' == '' and ('$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'arm')">01:00:00 @@ -84,11 +83,6 @@ false - - - - - @@ -226,15 +220,6 @@ $(HelixCommand)./RunTests.sh $(HelixCommand) --runtime-path "$HELIX_CORRELATION_PAYLOAD" - - - - <_MonoAotCrossCompilerPath>$([MSBuild]::NormalizePath($(MonoAotCrossDir), 'mono-aot-cross')) - <_MonoAotCrossCompilerPath Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">$(_MonoAotCrossCompilerPath).exe - - - - diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index b220ddbd04a238..3e96747c548f34 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -37,10 +37,6 @@ true - - - true @@ -69,9 +65,6 @@ - - @@ -88,24 +81,13 @@ - + - - - - - - - - - - - @@ -150,14 +132,6 @@ - - - - - - - - @@ -183,7 +157,7 @@ - + @@ -196,7 +170,7 @@ - + @@ -232,16 +206,7 @@ - - - - - - - - - - + @@ -337,15 +302,12 @@ - + - - - - - - - + @@ -394,17 +353,17 @@ - + - + - + @@ -553,11 +512,6 @@ - - - - @@ -567,15 +521,8 @@ - - - - - - - - - + + @@ -583,42 +530,14 @@ - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - @@ -646,7 +565,7 @@ - + @@ -671,7 +590,7 @@ - + @@ -684,7 +603,7 @@ - + @@ -769,16 +688,7 @@ - - - - - - - - + @@ -800,32 +710,6 @@ - - - - - - - - - - - - - - - - - false From 08bb10d26b2a6cf2c8d2590aebb089697a8975f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 23 Nov 2026 10:58:48 +0100 Subject: [PATCH 2/5] Remove inactive Mono trimming properties Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- eng/testing/tests.mobile.targets | 8 -------- 1 file changed, 8 deletions(-) diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets index b7f5beecdeedef..1ab260b33a8ce4 100644 --- a/eng/testing/tests.mobile.targets +++ b/eng/testing/tests.mobile.targets @@ -36,14 +36,6 @@ false - - - - false - <_DefaultValueAttributeSupport Condition="'$(OverrideDefaultValueAndDesignerHostSupport)' == 'true'">true - <_DesignerHostSupport Condition="'$(OverrideDefaultValueAndDesignerHostSupport)' == 'true'">true - - - @@ -202,29 +199,12 @@ %HARNESS_RUNNER% $(_XHarnessArgs) %XHARNESS_ARGS% %WasmXHarnessArgs% -- $(WasmXHarnessMonoArgs) %WasmXHarnessMonoArgs% $(_AppArgs) %WasmTestAppArgs% - - <_AOTBuildCommand Condition="'$(BrowserHost)' != 'windows'">_buildAOTFunc publish/ProxyProjectForAOTOnHelix.proj $XHARNESS_OUT/AOTBuild.binlog - <_AOTBuildCommand Condition="'$(BrowserHost)' == 'windows'">dotnet msbuild publish/ProxyProjectForAOTOnHelix.proj /bl:%XHARNESS_OUT%/AOTBuild.binlog - - - <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) /p:TasksConfiguration=$(TasksConfiguration) - - <_AOTBuildCommand>$(_AOTBuildCommand) $(_ShellCommandSeparator) cd wasm_build/AppBundle - - $(_AOTBuildCommand) - $(_AOTBuildCommand) $(_ShellCommandSeparator) $(RunScriptCommand) - - + Condition="'$(IsWasmProject)' != 'false'" /> + Condition="'$(IsWasmProject)' != 'false'" /> - - - - - + true @@ -293,7 +273,7 @@ <_WasmFilesForVfs Include="@(_WasmBuildAssetCandidates)" Condition="'%(_WasmBuildAssetCandidates.BuildReference)' == 'true' and $([System.String]::new('%(_WasmBuildAssetCandidates.Identity)').EndsWith('.dll')) and !$([System.String]::new('%(_WasmBuildAssetCandidates.Identity)').EndsWith('.resources.dll'))" /> - + <_SatelliteAssemblies Include="$(PublishDir)*\*.resources.dll" /> <_SatelliteAssemblies CultureName="$([System.IO.Directory]::GetParent('%(Identity)').Name)" /> <_SatelliteAssemblies TargetPath="%(CultureName)\%(FileName)%(Extension)" /> @@ -381,33 +361,11 @@ - - - - true - -O2 - - - - -O2 -Wl,-O0 -Wl,--lto-O0 - - - - - - <_WasmPropertyNames Include="DisableParallelEmccCompile" /> - <_WasmPropertyNames Include="EmccCompileOptimizationFlag" /> - <_WasmPropertyNames Include="EmccLinkOptimizationFlag" /> - <_WasmPropertyNames Include="WasmIncludeFullIcuData" /> - <_WasmPropertyNames Include="WasmIcuDataFileName" /> - - - diff --git a/eng/testing/tests.wasi.targets b/eng/testing/tests.wasi.targets index 75c90c74edd47b..ba4dcf66ea9935 100644 --- a/eng/testing/tests.wasi.targets +++ b/eng/testing/tests.wasi.targets @@ -14,7 +14,6 @@ - <_BundleAOTTestWasmAppForHelixDependsOn>$(_BundleAOTTestWasmAppForHelixDependsOn);PrepareForWasiBuildApp;_PrepareForAOTOnHelix - <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) /p:TasksConfiguration=$(TasksConfiguration) - - <_AOTBuildCommand>$(_AOTBuildCommand) $(_ShellCommandSeparator) cd wasm_build/AppBundle - - $(_AOTBuildCommand) - $(_AOTBuildCommand) $(_ShellCommandSeparator) $(RunScriptCommand) - - - - + + @@ -110,11 +94,7 @@ - - - - - + true - - - WasmTriggerPublishApp - $(BundleTestWasmAppDependsOn);_BundleAOTTestWasmAppForHelix + WasmTriggerPublishApp @@ -95,10 +76,6 @@ exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" --runtime-config "$(_RuntimeConfigJsonPath)" $(WasmHostArguments) $(StartArguments) $(WasmXHarnessMonoArgs) $(_AppArgs) - - - - @@ -107,81 +84,6 @@ - - - - - <_MainAssemblyPath Condition="'%(WasmAssembliesToBundle.FileName)' == $(AssemblyName) and '%(WasmAssembliesToBundle.Extension)' == '.dll'">%(WasmAssembliesToBundle.Identity) - $([System.IO.Path]::ChangeExtension($(_MainAssemblyPath), '.runtimeconfig.json')) - - - - - - - - - - - - - - - - <_BundlePdbFiles Include="$([System.IO.Path]::ChangeExtension('%(WasmAssembliesToBundle.Identity)', '.pdb'))" /> - - - - - - <_WasmPropertyNames Include="AOTMode" /> - <_WasmPropertyNames Include="AssemblyName" /> - <_WasmPropertyNames Include="DisableParallelAot" /> - <_WasmPropertyNames Include="IncludeSatelliteAssembliesInVFS" /> - <_WasmPropertyNames Include="InvariantGlobalization" /> - <_WasmPropertyNames Include="WasmBuildNative" /> - <_WasmPropertyNames Include="WasmDebugLevel" /> - <_WasmPropertyNames Include="WasmDedup" /> - <_WasmPropertyNames Include="WasmLinkIcalls" /> - <_WasmPropertyNames Include="WasmNativeStrip" /> - <_WasmPropertyNames Include="WasmNativeDebugSymbols" /> - <_WasmPropertyNames Include="_WasmDevel" /> - <_WasmPropertyNames Include="_WasmStrictVersionMatch" /> - <_WasmPropertyNames Include="WasmEmitSymbolMap" /> - - <_WasmPropertiesToPass - Include="$(%(_WasmPropertyNames.Identity))" - Name="%(_WasmPropertyNames.Identity)" - ConditionToUse__="%(_WasmPropertyNames.ConditionToUse__)" /> - - <_WasmVFSFilesToCopy Include="@(WasmFilesToIncludeInFileSystem)" /> - <_WasmVFSFilesToCopy TargetPath="%(FileName)%(Extension)" Condition="'%(_WasmVFSFilesToCopy.TargetPath)' == ''" /> - - <_WasmExtraFilesToCopy Include="@(WasmExtraFilesToDeploy)" /> - <_WasmExtraFilesToCopy TargetPath="%(FileName)%(Extension)" Condition="'%(_WasmExtraFilesToCopy.TargetPath)' == ''" /> - - - - - - - - - - - - - diff --git a/src/libraries/Common/src/Interop/Browser/Interop.Locale.Mono.cs b/src/libraries/Common/src/Interop/Browser/Interop.Locale.Mono.cs deleted file mode 100644 index 0a2e8449704be8..00000000000000 --- a/src/libraries/Common/src/Interop/Browser/Interop.Locale.Mono.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Runtime.CompilerServices; - -internal static partial class Interop -{ - internal static unsafe partial class JsGlobalization - { - [MethodImplAttribute(MethodImplOptions.InternalCall)] - internal static extern unsafe nint GetLocaleInfo(char* locale, int localeLength, char* culture, int cultureLength, char* buffer, int bufferLength, out int resultLength); - } -} diff --git a/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj b/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj index 835551934d5260..99f516745bb1e8 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj +++ b/src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj @@ -9,6 +9,10 @@ false $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) + + + true + diff --git a/src/libraries/sendtohelix.proj b/src/libraries/sendtohelix.proj index 165341e4edcba6..1d91c62ba8d55a 100644 --- a/src/libraries/sendtohelix.proj +++ b/src/libraries/sendtohelix.proj @@ -84,13 +84,14 @@ - + <_TestUsingWorkloadsValues Include="false" /> <_TestUsingWorkloadsValues Include="true" /> + <_TestUsingWebcilValues Include="true;false" Condition="'$(TargetOS)' == 'browser'" /> <_TestUsingFingerprintingValues Include="true;false" Condition="'$(TargetOS)' == 'browser'" /> - + <_TestUsingCrossProductValuesTemp Include="@(_TestUsingWorkloadsValues)"> %(_TestUsingWorkloadsValues.Identity) false diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 3e96747c548f34..4fd1b913e55384 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -36,7 +36,7 @@ false - true + true @@ -340,7 +340,7 @@ - + diff --git a/src/mono/wasm/data/aot-tests/Directory.Build.props b/src/mono/wasm/data/aot-tests/Directory.Build.props deleted file mode 100644 index e58f1854e28fd0..00000000000000 --- a/src/mono/wasm/data/aot-tests/Directory.Build.props +++ /dev/null @@ -1,34 +0,0 @@ - - - <_TargetsBaseName Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">BrowserWasmApp - <_TargetsBaseName Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'">WasiApp - <_TargetsBaseName Condition="'$(_TargetsBaseName)' == ''">Unknown RID=$(RuntimeIdentifier) - - - - $(HELIX_CORRELATION_PAYLOAD)\build\ - <_WasmTargetsDir>$(WasmBuildSupportDir)\wasm\ - <_WasmSharedDir>$(WasmBuildSupportDir)\wasm-shared\ - - - - <_WasmTargetsDir Condition="'$(_WasmTargetsDir)' == '' and '$(RuntimeSrcDir)' != '' and '$(RuntimeIdentifier)' == 'browser-wasm'">$(RuntimeSrcDir)\src\mono\browser\build\ - <_WasmTargetsDir Condition="'$(_WasmTargetsDir)' == '' and '$(RuntimeSrcDir)' != '' and '$(RuntimeIdentifier)' == 'wasi-wasm'">$(RuntimeSrcDir)\src\mono\wasi\build\ - <_WasmSharedDir Condition="'$(_WasmSharedDir)' == '' and '$(RuntimeSrcDir)' != ''">$(RuntimeSrcDir)\src\mono\wasm\build\ - - - - <_WasmTargetsDir Condition="'$(_WasmTargetsDir)' != ''">$([MSBuild]::EnsureTrailingSlash($(_WasmTargetsDir))) - <_WasmSharedDir Condition="'$(_WasmSharedDir)' != ''">$([MSBuild]::EnsureTrailingSlash($(_WasmSharedDir))) - - $(_WasmSharedDir) - - <_WasmLocalBuildPropsPath Condition="'$(WasmCommonTargetsPath)' != ''">$([MSBuild]::NormalizePath($(WasmCommonTargetsPath), 'WasmApp.LocalBuild.props')) - <_WasmLocalBuildTargetsPath Condition="'$(WasmCommonTargetsPath)' != ''">$([MSBuild]::NormalizePath($(WasmCommonTargetsPath), 'WasmApp.LocalBuild.targets')) - - - - - PrepareForWasmBuild;$(WasmBuildAppDependsOn) - - diff --git a/src/mono/wasm/data/aot-tests/Directory.Build.targets b/src/mono/wasm/data/aot-tests/Directory.Build.targets deleted file mode 100644 index 19ba8eaff0e382..00000000000000 --- a/src/mono/wasm/data/aot-tests/Directory.Build.targets +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/mono/wasm/data/aot-tests/ProxyProjectForAOTOnHelix.proj b/src/mono/wasm/data/aot-tests/ProxyProjectForAOTOnHelix.proj deleted file mode 100644 index 8f9a4b9dc79547..00000000000000 --- a/src/mono/wasm/data/aot-tests/ProxyProjectForAOTOnHelix.proj +++ /dev/null @@ -1,65 +0,0 @@ - - - - $([MSBuild]::NormalizeDirectory($(HELIX_WORKITEM_ROOT), 'wasm_build')) - $([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'wasm_build')) - - true - true - $([MSBuild]::NormalizeDirectory($(TestRootDir), '..', 'publish')) - $([MSBuild]::NormalizeDirectory($(OriginalPublishDir), '..', 'vfsFiles')) - $([MSBuild]::NormalizeDirectory($(OriginalPublishDir), '..', 'extraFiles')) - $(TestRootDir)\obj\ - - false - PrepareForWasmBuildApp;$(WasmBuildAppDependsOn) - - <_PropsFile>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).props - - - - - - - - - - <_ProjectRuntimeConfigFilePathOriginal Include="$(OriginalPublishDir)**\*.runtimeconfig.json" /> - - - - @(_ProjectRuntimeConfigFilePathOriginal) - - - - - - - - $(TestRootDir)AppBundle\ - WasmTestRunner.dll - $(OriginalPublishDir)test-main.mjs - true - - - - - - <_VFSFiles Include="$(VFSFilesPath)**\*" /> - - - <_ExtraFiles Include="$(ExtraFilesPath)**\*" /> - - - - - <_SatelliteAssembliesForVFS Include="$(OriginalPublishDir)**\*.resources.dll" /> - <_SatelliteAssembliesForVFS CultureName="$([System.IO.Directory]::GetParent('%(Identity)').Name)" /> - <_SatelliteAssembliesForVFS TargetPath="%(CultureName)\%(FileName)%(Extension)" /> - - - - - - \ No newline at end of file From 36ff483165a8b606b8e24e4510aea099769018ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 23 Nov 2026 16:08:24 +0100 Subject: [PATCH 4/5] Restore required CI test matrix inputs Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- eng/testing/tests.ioslike.targets | 2 +- src/libraries/sendtohelix-mobile.targets | 4 ++++ src/libraries/sendtohelix.proj | 5 ++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/eng/testing/tests.ioslike.targets b/eng/testing/tests.ioslike.targets index 7a79e6c83c5ccc..ae1328adab5f9f 100644 --- a/eng/testing/tests.ioslike.targets +++ b/eng/testing/tests.ioslike.targets @@ -41,7 +41,7 @@ <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) - <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) + <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:RunAOTCompilation=$(RunAOTCompilation) /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:UseMonoRuntime=$(UseMonoRuntime) /p:MonoForceInterpreter=$(MonoForceInterpreter) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) <_AOTBuildCommand Condition="'$(NativeLib)' != ''">$(_AOTBuildCommand) /p:NativeLib=$(NativeLib) /p:BundlesResources=$(BundlesResources) /p:ForceLibraryModeGenerateAppBundle=$(ForceLibraryModeGenerateAppBundle) <_AOTBuildCommand Condition="'$(UseNativeAOTRuntime)' != 'true'">$(_AOTBuildCommand) /p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunContainerFormat=macho /p:StripSymbols=true diff --git a/src/libraries/sendtohelix-mobile.targets b/src/libraries/sendtohelix-mobile.targets index dbef8e2ed22147..efb265f950a357 100644 --- a/src/libraries/sendtohelix-mobile.targets +++ b/src/libraries/sendtohelix-mobile.targets @@ -52,6 +52,7 @@ $([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'mono', 'msbuild', 'apple', 'build')) + $([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'mono', 'msbuild', 'common')) $(TargetOS)- https://netcorenativeassets.blob.core.windows.net/resource-packages/external/macos/cmake/cmake-3.28.0-macos-universal.tar.gz @@ -64,8 +65,11 @@ + + + diff --git a/src/libraries/sendtohelix.proj b/src/libraries/sendtohelix.proj index 1d91c62ba8d55a..75845570f74d28 100644 --- a/src/libraries/sendtohelix.proj +++ b/src/libraries/sendtohelix.proj @@ -84,14 +84,13 @@ - + <_TestUsingWorkloadsValues Include="false" /> <_TestUsingWorkloadsValues Include="true" /> - <_TestUsingWebcilValues Include="true;false" Condition="'$(TargetOS)' == 'browser'" /> <_TestUsingFingerprintingValues Include="true;false" Condition="'$(TargetOS)' == 'browser'" /> - + <_TestUsingCrossProductValuesTemp Include="@(_TestUsingWorkloadsValues)"> %(_TestUsingWorkloadsValues.Identity) false From aa5f23266b14d6cd71493d5773afc3596c96c900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 23 Nov 2026 16:13:23 +0100 Subject: [PATCH 5/5] Trim obsolete Apple proxy properties Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- eng/testing/tests.ioslike.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/testing/tests.ioslike.targets b/eng/testing/tests.ioslike.targets index ae1328adab5f9f..7cde931c79d56a 100644 --- a/eng/testing/tests.ioslike.targets +++ b/eng/testing/tests.ioslike.targets @@ -41,7 +41,7 @@ <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration) - <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:RunAOTCompilation=$(RunAOTCompilation) /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:UseMonoRuntime=$(UseMonoRuntime) /p:MonoForceInterpreter=$(MonoForceInterpreter) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) + <_AOTBuildCommand>$(_AOTBuildCommand) /p:XHARNESS_EXECUTION_DIR="$XHARNESS_EXECUTION_DIR" /p:UseNativeAOTRuntime=$(UseNativeAOTRuntime) /p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:UseMonoRuntime=$(UseMonoRuntime) /p:DevTeamProvisioning=$(DevTeamProvisioning) /p:UsePortableRuntimePack=$(UsePortableRuntimePack) /p:Configuration=$(Configuration) /p:TargetFramework=$(NetCoreAppCurrent) <_AOTBuildCommand Condition="'$(NativeLib)' != ''">$(_AOTBuildCommand) /p:NativeLib=$(NativeLib) /p:BundlesResources=$(BundlesResources) /p:ForceLibraryModeGenerateAppBundle=$(ForceLibraryModeGenerateAppBundle) <_AOTBuildCommand Condition="'$(UseNativeAOTRuntime)' != 'true'">$(_AOTBuildCommand) /p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunContainerFormat=macho /p:StripSymbols=true