Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build multiple configurations of a project in a single build operation in Visual Studio

I'm trying to build an XPCOM extension for Firefox, and I need to build separate dlls for Firefox 4 and Firefox 5, to link against their different versions of the xulrunner SDK. Is there some way that I can do this using a single vcproj to generate two output files from different configurations of a single project? The only difference between the configurations is the directory of the xulrunner SDK in the include and lib paths.

As far as I can tell, VS2010 will only build one configuration at a time. I've tried adding a new platform for the project, but it will only let me add predefined platforms (x64, Itanium).

Thanks for any suggestions.

like image 571
Greg Avatar asked Dec 22 '22 12:12

Greg


1 Answers

Try going to Build->Configurations Manager. You can define multiple build configurations there and then build whichever ones you'd like using Build->Batch Build. Is this what you're asking about?

(BTW, first post! Yay!)

EDIT: I should add that this works in VS2008, which is the only VS I have installed here, but the feature is still available in VS2010.

like image 185
lpankau Avatar answered Feb 06 '23 11:02

lpankau