Search code examples
visual-studiobuild-process

Building Visual Studio projects to a common directory rather than bin?


Is it possible to build projects to a common directory, instead of the per project bin folder?

The purpose would be to make it easier to source control all my binaries. How can I do it and, what are the pitfalls of this approach?

You have the option to build projects to another directory (a common directory?) rather than the bin/debug and bin/release.


Solution

  • If you mean DLL files/assemblies, then you build to bin/release as usual, then copy the DLL files you require to a common directory and then reference those, so when you rebuild the original solution, you don't have to worry about which version you are using or recompile other related projects as the version hasn't changed in the common dir.