HDFGroup / HDFGroup/HDF.PInvoke
Invalid dll-path when there is a '#' in the path
Open
- Dominant language
- C#
- Stars
- 87
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
In `NativeDependencies.GetAssemblyName()` the binary search path based on this code:
```C#
string myPath = new Uri(System.Reflection.Assembly
.GetExecutingAssembly().CodeBase).AbsolutePath;
myPath = Uri.UnescapeDataString(myPath);
return myPath;
```
which transforms a path `c:\Dir\Sub#Dir\HDF.PInvoke.dll` into `c:\Dir\Sub`.
A fix could look like this:
```C#
var myPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
return Path.GetDirectoryName( myPath );
```
which transforms a path `c:\Dir\Sub#Dir\HDF.PInvoke.dll` into `c:\Dir\Sub#Dir`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.