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-wixproj-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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to