1
PreBuildEvent
和HeatDirectory
之间的关系是什么 .wixproj
文件?PreBuildEvent vs HeatDirectory中的WiX .wixproj文件
要调用heat.exe
我已经配置了一个预生成事件:
<PropertyGroup>
<PreBuildEvent>"$(WIX)bin\heat.exe" dir "$(SolutionDir)\Source"^
-var var.SourceDir^
-dr INSTALLFOLDER^
-cg MyComponents^
-ag -ke -scom -sfrag -srd -sreg -suid -svb6^
-o "$(ProjectDir)MyComponents.wxs"</PreBuildEvent>
</PropertyGroup>
但是也有个HeatDirectory
元素:
<!-- To modify your build process, add your task inside one of the
targets below and uncomment it. Other similar extension points
exist, see Wix.targets.
<Target Name="BeforeBuild">
<HeatDirectory ... >
</HeatDirectory>
</Target>
<Target Name="AfterBuild">
</Target>
-->
是什么关系,哪一个我应该使用?