Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 0d68f1a

Browse files
Merge pull request #7 from joagyl/master
Fix for net5.0 single file deployment
2 parents 187f4d6 + db0fe21 commit 0d68f1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

csharp/src/AutoNativeImport.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,9 @@ public static T Import<T>(INativeLibImporter importer, string libName, string ve
371371

372372
var basePaths = new string[] {
373373
Directory.GetCurrentDirectory(),
374+
Path.GetDirectoryName(UriToPath(AppContext.BaseDirectory)),
374375
Path.GetDirectoryName(UriToPath(Transitional.CurrentFramework.GetBaseDirectory())),
375-
Path.GetDirectoryName(UriToPath(Assembly.GetEntryAssembly()?.CodeBase)),
376376
Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location),
377-
Path.GetDirectoryName(UriToPath(typeof(PosixImporter).GetTypeInfo().Assembly.CodeBase)),
378377
Path.GetDirectoryName(typeof(PosixImporter).GetTypeInfo().Assembly.Location),
379378
};
380379
var search = basePaths

0 commit comments

Comments
 (0)