2
使用WixVariables我是對的Visual Studio 2012和我使用wix維克斯 - 上.wixproj
我想用目標一個WixVariables或DefineConstants構建(wixproj)後,當我卸載項目
我用
<DefineConstants>VersionNodeServer=0.0.1;</DefineConstants>
或者
<WixVariables>VersionNodeServer=0.0.1;</WixVariables>
但是當我使用這款v這樣的'VersionNodeServer'
<Target Name="AfterBuild">
<WebDownload FileName="test.msm" FileUri="$(VersionNodeServer)"/>
構建失敗,因爲FileUri爲空。
只見VS控制檯上我的變量..
C:\ Program Files文件\的WiX工具集V3.10 \ BIN \ candle.exe -DDEBUG -dVersionNodeServer = 0.0.1; [.. 。]
ooo :(好的,我想tu使用動態變量進入msbuild,用蠟燭...... thx爲這個anwser! –
動態變量/屬性和MSBUILD一起並不那麼簡單,屬性被創建爲第一步在MSBUILD內部,但是你可以創建一個任務來創建AfterBuild的前提條件 –