This question might have been asked multiple times and maybe I\'m just bad at using the search functions here aswell as google but I\'ve not found an answer to this question
This question has been answered already but I figured I'll include a generic fail-safe method for copying all indirect references into your projects' output directories.
CopyIndirectDependencies.targets and place the targets file in your project directory..csproj or .vbproj to include an import to the .targets file you added. See example below.CopyIndirectDependencies.targets File Content
true
false
false
$(CoreBuildDependsOn);
CopyIndirectDependencies
Sample project with import
...
...
Source: http://blog.alexyakunin.com/2009/09/making-msbuild-visual-studio-to.html