Skip to content

Commit 64c052e

Browse files
committed
Fix detection of the path to the native libraries
Fix #202 Prevent the path from being truncated when it contains a hash (#).
1 parent d21cf2e commit 64c052e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/NativeMethods.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static NativeMethods()
1717
{
1818
if (!IsRunningOnLinux())
1919
{
20-
string originalAssemblypath = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath;
20+
string originalAssemblypath = new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath;
2121

2222
string currentArchSubPath = "NativeBinaries/" + ProcessorArchitecture;
2323

0 commit comments

Comments
 (0)