We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b4f6c commit 5214ca1Copy full SHA for 5214ca1
SharpShell.Loader/Program.cs
@@ -27,7 +27,12 @@ static void Main(string[] args)
27
return AssemblyLoadContext.Default.LoadFromStream(ms);
28
}
29
30
- var dllLocalPath = Path.Combine(rootPath, name + ".dll");
+ var dllLocalPath = Path.Combine(Directory.GetCurrentDirectory(), name + ".dll");
31
+ if (!File.Exists(dllLocalPath)) {
32
+ // File does exist in current dir, let's assemble path with pwsh root
33
+ dllLocalPath = Path.Combine(rootPath, name + ".dll");
34
+ }
35
+
36
if (BlacklistedDependencies.Contains(name))
37
return AssemblyLoadContext.Default.LoadFromAssemblyPath(dllLocalPath);
38
0 commit comments