8000 Fix detection of the path to the native libraries · freevoid/libgit2sharp@64c052e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64c052e

Browse files
committed
Fix detection of the path to the native libraries
Fix libgit2#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

Lines changed: 1 addition & 1 deletion
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)
0