[Wasm.Build.Tests] Fixup wildcard matching for runtime packs (#85286)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Wed, 26 Apr 2023 01:55:38 +0000 (21:55 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 01:55:38 +0000 (20:55 -0500)
The naming is
`Microsoft.NETCore.App.Runtime.Mono.{variant}.{rid}.{version}.nupkg`

Fixes local WBT builds for non-default runtime variants (eg: build
with `/p:MonoWasmBuildVariant=multithread` then run WBT)

eng/testing/tests.browser.targets

index 5b53832..8e6e64f 100644 (file)
     </PropertyGroup>
 
     <ItemGroup>
-      <_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" />
+      <_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.*.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" />
       <_RuntimePackNugetAvailable Remove="@(_RuntimePackNugetAvailable)" Condition="$([System.String]::new('%(_RuntimePackNugetAvailable.FileName)').EndsWith('.symbols'))" />
     </ItemGroup>