File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/Components/WebAssembly/BlazorManifest/acquire Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,17 +96,19 @@ static void Move(string source, string destination)
9696 var packageName = item . Key ;
9797 if ( item . Value . AliasTo is Dictionary < string , string > alias )
9898 {
99+ packageName = "" ; // if this is an alias pack and platform isn't in the alias it isn't required
100+
99101 if ( OperatingSystem . IsWindows ( ) )
100102 {
101- packageName = Environment . Is64BitProcess ? alias [ "win-x64" ] : alias [ "win-x86" ] ;
103+ alias . TryGetValue ( Environment . Is64BitProcess ? "win-x64" : "win-x86" , out packageName ) ;
102104 }
103105 else if ( OperatingSystem . IsMacOS ( ) )
104106 {
105- packageName = alias [ "osx-x64" ] ;
107+ alias . TryGetValue ( "osx-x64" , out packageName ) ;
106108 }
107109 else if ( OperatingSystem . IsLinux ( ) )
108110 {
109- packageName = alias [ "linux-x64" ] ;
111+ alias . TryGetValue ( "linux-x64" , out packageName ) ;
110112 }
111113 else
112114 {
You can’t perform that action at this time.
0 commit comments