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)"/>