From c7d6bd607715f334cda90e01967bb0c02dee09be Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 31 May 2021 21:10:17 +0200 Subject: [PATCH] Support browser wasm in compatible pkg tfms task (#7460) Becaues of the default arch value of "-x64", for browser this resolves to "browser-x64" which isn't a supported RID. Defaulting to wasm for browser as a workaround. --- .../GetCompatiblePackageTargetFrameworks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.PackageTesting/GetCompatiblePackageTargetFrameworks.cs b/src/Microsoft.DotNet.PackageTesting/GetCompatiblePackageTargetFrameworks.cs index 95c7a89efcf..fa10507cc1b 100644 --- a/src/Microsoft.DotNet.PackageTesting/GetCompatiblePackageTargetFrameworks.cs +++ b/src/Microsoft.DotNet.PackageTesting/GetCompatiblePackageTargetFrameworks.cs @@ -140,7 +140,7 @@ public string GetRidsFromPackage(Package package) if (item.AssetType == AssetType.RuntimeAsset) { string testRid = item.Rid; - string testArch = "-x64"; + string testArch = testRid == "browser" ? "-wasm" : "-x64"; if (testRid == "unix") { if (!rids.Contains("linux" + testArch))