我想根据定义的值或其他值来更改Wix变量的值。在我wixproj我:Wix条件和预处理器变量
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TFS Live|x86' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<WixVariables>LIVE</WixVariables>
<DefineConstants>LIVE</DefineConstants>
</PropertyGroup>
...在我WXS我:
<?ifdef LIVE ?>
<?define binaryPath = "C:\Builds\5\IT Aerodynamics\RBT.TestSpec.LiveRelease\Binaries" ?>
<?else?>
<?define binaryPath = "C:\Builds\5\IT Aerodynamics\RBT.TestSpec.CI\Binaries" ?>
<?endif?>
...但是当我建立了相应的配置,和ifdef永远不会触发。我总是得到binaryPath
的第二个值。任何关于我在做什么的错误?