Skip to content

Commit

Permalink
chore: Adjust search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Jun 24, 2024
1 parent 3ef53c9 commit f93d9f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected override AssemblyDefinition SearchDirectory(AssemblyNameReference name
// Fill all the known references first, so they get resolved
// using compilation paths.
var explicitAssembliesPaths = new Dictionary<string, string>();
foreach(var asmReferencePath in _assembly_references)
foreach (var asmReferencePath in _assembly_references)
{
if (Path.GetFileNameWithoutExtension(asmReferencePath) is { } asmName)
{
Expand All @@ -42,6 +42,7 @@ protected override AssemblyDefinition SearchDirectory(AssemblyNameReference name

_files.Add(explicitAssembliesPaths);

// Use all other search paths
string[] extensions = new[] { ".winmd", ".dll", ".exe", ".dll" };

foreach (var directory in directories.Where(Directory.Exists))
Expand All @@ -62,6 +63,7 @@ protected override AssemblyDefinition SearchDirectory(AssemblyNameReference name
}
}

_files.Add(map);
}
}

Expand Down

0 comments on commit f93d9f9

Please sign in to comment.