From 18655ee09f8e06343ba6a10016322032aade84e1 Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:18:12 +0100 Subject: [PATCH] [browser][mt] Fix `package microsoft.netcore.app.runtime.mono.multithread.browser-wasm is not found` (#98083) * Invert the logic: prepare MT nuget for ST and ST nuget for MT. * We have only 2 runtimes now. * Added clarification --- eng/testing/workloads-browser.targets | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eng/testing/workloads-browser.targets b/eng/testing/workloads-browser.targets index a312347ff12f6..f41bf098e8d04 100644 --- a/eng/testing/workloads-browser.targets +++ b/eng/testing/workloads-browser.targets @@ -41,15 +41,16 @@ - - <_BuildVariant Condition="'$(WasmEnableThreads)' == 'true'">multithread - <_Descriptor Condition="'$(WasmEnableThreads)' == 'true'">runtime pack for $(_BuildVariant) - <_Descriptor Condition="'$(WasmEnableThreads)' != 'true'">single threaded runtime pack + <_IsMTNugetMissing Condition="'$(WasmEnableThreads)' != 'true'">true + <_BuildVariant Condition="'$(_IsMTNugetMissing)' == 'true'">multithread + <_Descriptor Condition="'$(_IsMTNugetMissing)' == 'true'">runtime pack for $(_BuildVariant) + <_Descriptor Condition="'$(_IsMTNugetMissing)' != 'true'">single threaded runtime pack <_DefaultRuntimePackNuGetPath>$([System.String]::Join('.', $(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono, $(_BuildVariant), @@ -67,10 +68,12 @@ Text="Expected to find either one or two in $(LibrariesShippingPackagesDir): @(_RuntimePackNugetAvailable->'%(FileName)%(Extension)')" /> + <_NuGetsToBuild Include="$(_DefaultRuntimePackNuGetPath)" Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj" Dependencies="$(_DefaultRuntimePackNuGetPath)" - Properties="@(_DefaultPropsForNuGetBuild, ';');WasmEnableThreads=$(WasmEnableThreads)" + Properties="@(_DefaultPropsForNuGetBuild, ';');WasmEnableThreads=$(_IsMTNugetMissing)" Descriptor="$(_Descriptor)"/>