0

I would like to be able to use MSBuild to build my solution and for it to not copy over any third party dlls the projects reference to the output directory.

Tom Jones
  • 265
  • 2
  • 14

2 Answers2

1

Have you tried setting the CopyLocal property to false on the reference in Visual Studio. See msdn for more info on CopyLocal. This setting will stop msbuild from copying non-GAC'd references to your bin directory

flipchart
  • 6,548
  • 4
  • 28
  • 53
1

This is the best solution for me. You can set this way default value for Private property for all references and project references. I'm using it for local & server builds. If you need to disable copying references into your bin dir during compilation using VS2010 you have to set < Private > property to False for every (project) reference directly in the project file. Visual Studio and MSBuild set Private properties to True by default.

Community
  • 1
  • 1
Ludwo
  • 6,043
  • 4
  • 32
  • 48