我使用的是 Visual Studio 2012wix http://wixtoolset.org/
当我卸载项目时,我想在构建后(wixproj)目标上使用 WixVariables 或 DefineConstants
我用过
<DefineConstants>VersionNodeServer=0.0.1;</DefineConstants>
Or
<WixVariables>VersionNodeServer=0.0.1;</WixVariables>
但是当我像这样使用这个变量“VersionNodeServer”时
<Target Name="AfterBuild">
<WebDownload FileName="test.msm" FileUri="$(VersionNodeServer)"/>
构建失败,因为 FileUri 为空。
我在 VS 控制台上看到了我的变量..
C:\Program Files\WiX Toolset v3.10\bin\candle.exe -dDebug
-dVersionNodeServer=0.0.1;[...]
Neither <DefineConstants>
nor <WixVariable>
为 MSBUILD 定义一个变量。你必须把
<PropertyGroup>
<VersionNodeServer>0.1.1</VersionNodeServer>
</PropertyGroup>
.wixproj 文件中的某处。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)