libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.12k stars 878 forks source link

Include process-wide search path in default search #2020

Closed glopesdev closed 10 months ago

glopesdev commented 1 year ago

This PR adds process-wide search paths to the set of included default import search paths. This is considered part of the safe values for DllImportSearchPath as per CA5393.

Fixes #2019

glopesdev commented 10 months ago

Actually, SafeDirectories is already a flag combination of System32 and UserDirectories so this PR would not resolve the linked issue. Instead, the host application needs to call AddDllDirectory to specify the process wide DLL search path.