VS2010 Query

Started by
3 comments, last by beebs1 12 years, 3 months ago
Hiya,

Is anyone aware of a way to have multiple projects in a VS2010 solution output to the same folder?

From VS6 to VS2008 I was able to just set the same output folder in each project through the build properties.

If I do this in VS2010 and build all the projects, each one seems to clear the folder before building - so I end up with only the last project which was built. I've tried this on several machines, so I can only assume it was either changed or is a bug.

Any suggestions are appreciated!

Cheers.
Advertisement
Not to answer your question directly, but I think you can use post-build event to copy/move the files in different folders to one folder?

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

by default, any references will be included in the build and have their associate DLLs included. Additionally, you can create multiple sub-projects in one VS solution and these projects will be contained in the parent solution folder.
you could use a CM manager on that folder and just issue commits each time it builds if you need to retain the build files... but it would just be easier to rebaseline the software and rebuild if they are needed... otherwise wqking has it right, you'll have to have some sort of post-build script manage the copy/move.
There's some way to do it - when I upgraded from 2008 to 2010 I imported my settings, if I try to build 2 projects in 2 separate solutions with the same output directory, both get built and nothing gets deleted. So its probably some setting that they changed the default value for.

Check properties -> configuration properties -> general -> extensions to delete on clean

and see if .lib, .dll, or .exe are in that list.
Thanks for your replies :)

I've checked the extensions to delete, but nothing seems out of place there. Thanks for the info about importing settings, I'll remember that.

I think I'll have to go with copying outputs to a common folder in post-build.

Cheers!

This topic is closed to new replies.

Advertisement