In my simple console application I'm using dll assembly with useful functionality, and there are no issues when that files contains in the same directory. But how to reference to dll assembly, which is located in the parent directory of the executable file?
Asked
Active
Viewed 136 times
0
-
Have you added dll as reference or Invoking dll using reflection ? – Nareen Babu Oct 24 '19 at 13:37
-
@user2932057 a reference to the assembly formed in visual studio – shmnff Oct 24 '19 at 13:48
-
You can also load it at runtime if you know the file: https://stackoverflow.com/q/465488/1462295 – BurnsBA Oct 24 '19 at 14:10
1 Answers
0
It does not work because the OS does not know where the dll is. You can add the path of the dll to your environmental variables and it will work or add the dll to a path that's already in your environmental variables.

g1b
- 11
- 2