If you are building the .wixproj directly then the defaults specified in the .wixproj should be true but the environment might have a say.
If you are building the .sln that contains the .wixproj then MSBuild will choose a Configuration|Platform dependent on the .sln. You'll want to investigate the solution Configuration|Platform to make sure the correct project Configuration|Platform is selected. Again the environment might have a say in choosing the Configuration|Platform at the solution level when it is not specified. We've ran into scenarios where the default Configuration|Platform chosen varied depending on whether you are calling MSBuild without using the vsvars32.bat to configure the environment or whether you are running in an environment configured by vsvars32.bat or one of the other batch scripts delivered by Visual Studio. For example, the "Visual Studio Command Prompt (2010)" chooses different defaults for Configuration|Platform than "Visual Studio x64 Win64 Command Prompt (2010)". If you are running this from a script then my suggestion is that you always specify the Configuration|Platform in your script and specify the defaults you want in your script. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail > -----Original Message----- > From: Rob Mensching [mailto:r...@robmensching.com] > Sent: Monday, May 21, 2012 10:13 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] In .wixproj, default Build Configuration ignored or > not > settable? > > A verbose MSBuild log file should show you how the property values are > changing. If not, I've found sprinkling Message tasks in the MSBuild files is > often the fastest way to see why values are not what I want them to be. > > Just had to do that today to fix the bundle signing bug. <smile/> > > On Fri, May 18, 2012 at 10:45 AM, john.burak <john.bu...@telvent.com> > wrote: > > > It's my understanding that with MSBuild, the configuration and > > platform used when none are specified is defined near the top of the > > project file in the elements with "blank" conditions, like this: > > > > <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" > > DefaultTargets="Build" > > xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> > > <PropertyGroup> > > * <Configuration Condition=" '$(Configuration)' == '' > > ">Debug</Configuration> > > <Platform Condition=" '$(Platform)' == '' ">x86</Platform> > > * > > > > This doesn't seem to be happening for a wixproj I have. I've added > > two new build configurations, and it keeps building one of those by > > default, called "Debug SU". I want it to build "Debug" by default. > > I'm calling MSBuild from a script. > > > > Does anyone know how to have a specific configuration used by default > > when one isn't specified to MSBuild? I could add logic to check for > > this one solution and pass in a specific configuration, but that's a > > bit ugly if there is supposed to be a settable default. > > > > Thanks, > > > > - John > > > > -- > > View this message in context: > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/In-wixpr > > oj-default-Build-Configuration-ignored-or-not-settable-tp7565859.html > > Sent from the wix-users mailing list archive at Nabble.com. > > > > > > ---------------------------------------------------------------------- > > -------- > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > > Discussions will include endpoint security, mobile security and the > > latest in malware threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -- > virtually, Rob Mensching - http://RobMensching.com LLC > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat > landscape has changed and how IT managers can respond. Discussions will > include endpoint security, mobile security and the latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users