0

I have a few class library assemblies from third parties. To help with organisation, I added a new project to my solution specially for these binaries. I didn't just add a solution folder, because I don't like that there is no physical folder there. I also like to to have these in their own project so that if I might add helpers for the original binaries I know where they are.

My project looks as follows: BinaryProj.csproj --Lib (folder) ----ab1.all ----bc3.dll ----cd4.dll

All of the above dlls are marked with 'Copy to output directory', but when I compile this project, these dlls are found under bin/Lib/....dll instead of 'bin/....dll. How can I get rid of the damnedLib`?

ProfK
  • 49,207
  • 121
  • 399
  • 775

2 Answers2

0

To change the build output directory:

  1. List item
  2. On the menu bar, choose Project, Appname Properties. Choose the Build tab.
  3. Choose the Browse button next to the Output path box and specify a new build output directory.
Ravi Kumar Mistry
  • 1,063
  • 1
  • 13
  • 24
0

You shouldn't do this. Sure, you may want to add third-party binaries to a Visual Studio (class library?) project for the overview and ease of management, but you shouldn't copy them to the output directory of that library project. The project doesn't need them, and referencing projects don't need all of them.

Just store the files wherever you want, preferably without putting them in a project, then reference the binaries from projects that need them. Then the files will be copied to the bin directory of projects that need them:

* Solution directory
|
+- ThirdParty
|  |
|  +- SomeAssembly.dll
|
+- Project1

Here Project1 will reference ..\ThirdParty\SomeAssembly.dll and copy that into its own bin directory.

If you're sure your way is the way you want, see Copy to Output Directory copies folder structure but only want to copy files to control where files are copied to.

Community
  • 1
  • 1
CodeCaster
  • 147,647
  • 23
  • 218
  • 272
  • Yeah, I supposed I could create a project purely to get a folder subordinate to the solution, then place the dependencies directly in that folder and simply reference them. They never get output to any `bin` folder other than where they are needed. – ProfK Jul 14 '15 at 08:45