Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

I have added several references to my project and when I compile my project, all DLLs must be exist next to my EXE file in the same folder. how can I define another path for my references.

EXE Path = ...\Test
DLL Path = ...\Test\Resources\DLL

I want to put my DLL in another path (like above) and inform my application to use DLLs in "...\Test\Resources\DLL" when I run my application.

thank you

What I have tried:

I've searched a lot but nothing gained.
Posted
Updated 16-Dec-16 18:14pm
v2

DLL files are loaded at run time, not compile time, so they need to be located by Windows. This means they must be in the same directory as the executable file or in one of the directories named in the environment PATH variable.
 
Share this answer
 
hello

I use this code in my App.Config but dose not work. help me please

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="DLL" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900