visual studio - "Always Copy" solution content (DLLs) to executable directory root -


by way of background, i'm trying 1 of emgu cv examples working. motion detection example mentioned in the answer "looking function motion detection on emgucv"

to example code working need add references emgu cv dlls project , make sure relevant open cv dlls copied output executable directory of project build. relevant dlls listed on emgu wiki.

i'm adding open cv dlls adding them content example project , marking them "copy always" in content properties:

content properties in vs2012 set "copy always"

i not want these cluttering root level of project have added project folder put these dlls in:

solution explorer showing project folder dlls in

however when build project dlls copied same directory hierarchy, i.e. have enclosing folder within execution directory not want:

file explorer showing directory containing dlls

what properties need set ensure dlls copied execution directory root rather in sub directory?

========== edit ==========

note cannot add these dlls references project neither .net assemblies nor com components open cv c++ libraries.

our group keeps files in folder similar you, instead of adding folder project, reference these dlls in main project adding items link top level of folder:

image of adding items link

as before, set each item content , copy always (items shown in solution folder):

view of solution

then when build make output directory:

output directory

it isn't pretty--you still see them in main project--but @ least puts them in right place.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -