Hi!
I have a Visual Studio C++ project that relies on an external dll file. How can I make Visual Studio copy this dll automatically into the output directory (debug/release) when i build the project?
Thanks!
Hi!
I have a Visual Studio C++ project that relies on an external dll file. How can I make Visual Studio copy this dll automatically into the output directory (debug/release) when i build the project?
Thanks!
Set Copy Local to True under the properties for the referenced assembly.
use a post-build action in your project, and add the commands to copy the offending dll. the post-build action are written as a batch script.
the output directory can be referenced as $(OutDir)
. the project directory is available as $(ProjDir)
. try to use relative pathes where applicable, so that you can copy or move your project folder without breaking the post-build action.