all groups > visual studio .net general > april 2004 >
You're in the

visual studio .net general

group:

Building multiple configurations


Building multiple configurations Steve McLellan
4/28/2004 11:33:53 PM
visual studio .net general:
Hi,

I've got a solution with a single project in it with 4 configurations. The
project is a load of code that's shared by our products (each with their own
solutions), and the configurations relate to the 4 configurations of each
product we build. Is it possible to get a solution to build all
configurations of a project it contains, and if not is it possible to create
4 solutions to match the project configs, but NOT have a complete rebuild
every time I change configuration? The ouput and intermediary directories
are separate for each config, so I don't see why VS wants to do full
rebuilds. Additionally, if I include this project in other solutions, and
make other projects dependent on it, will VS recognize that it only needs to
rebuild the project once, and only then if any source code inside the shared
project changes?

Any help much appreciated.

Steve

RE: Building multiple configurations robgruen NO[at]SPAM online.microsoft.com
4/29/2004 3:00:23 PM
Steve,

VS.NET is going to do a rebuild everytime you change configurations, this
behavior is by design. You could write an addin that actually goes
throught the motions of compiling all 4 configurations for you, or you
could create a batch file that also does it, have you considered either
option?

Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
#Reply-To: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
#From: "Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com>
#Subject: Building multiple configurations
#Date: Wed, 28 Apr 2004 23:33:53 +0100
#Lines: 20
#X-Priority: 3
#X-MSMail-Priority: Normal
#X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
#Message-ID: <eqt2iDXLEHA.1348@TK2MSFTNGP12.phx.gbl>
#Newsgroups: microsoft.public.vsnet.general,microsoft.public.vsnet.ide
#NNTP-Posting-Host: wat1vgty.pobox.net.uk 217.27.242.19
#Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
#Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.ide:11960
microsoft.public.vsnet.general:18653
#X-Tomcat-NG: microsoft.public.vsnet.general
#
#Hi,
#
#I've got a solution with a single project in it with 4 configurations. The
#project is a load of code that's shared by our products (each with their
own
#solutions), and the configurations relate to the 4 configurations of each
#product we build. Is it possible to get a solution to build all
#configurations of a project it contains, and if not is it possible to
create
#4 solutions to match the project configs, but NOT have a complete rebuild
#every time I change configuration? The ouput and intermediary directories
#are separate for each config, so I don't see why VS wants to do full
#rebuilds. Additionally, if I include this project in other solutions, and
#make other projects dependent on it, will VS recognize that it only needs
to
#rebuild the project once, and only then if any source code inside the
shared
#project changes?
#
#Any help much appreciated.
#
#Steve
#
#
#
AddThis Social Bookmark Button