From f93d9f999c02adb3c9c1945c957f0a4fa37a5a7b Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Sun, 23 Jun 2024 20:30:34 -0400 Subject: [PATCH] chore: Adjust search paths --- src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs b/src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs index 3865e488c..5d45f9776 100644 --- a/src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs +++ b/src/Uno.Wasm.Packager/CapturingAssemblyResolver.cs @@ -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(); - foreach(var asmReferencePath in _assembly_references) + foreach (var asmReferencePath in _assembly_references) { if (Path.GetFileNameWithoutExtension(asmReferencePath) is { } asmName) { @@ -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)) @@ -62,6 +63,7 @@ protected override AssemblyDefinition SearchDirectory(AssemblyNameReference name } } + _files.Add(map); } }