Sign in to follow this  
beebs1

VS2010 Query

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Hidden
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this