在Visual Studio 2008和WiX(v3)中使用heat.exe收集.csproj [英] Harvesting a .csproj with heat.exe in Visual Studio 2008 and WiX(v3)

查看:98
本文介绍了在Visual Studio 2008和WiX(v3)中使用heat.exe收集.csproj的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现Wix v3使用工具(heat.exe)将信息收集"到WiX片段中.我在错误的位置查看,或者记录很少.

I found that Wix v3 uses a tool (heat.exe) to "harvest" information into WiX fragments. Either I am looking in the wrong location, or this is thinly documented.

为包含媒体文件的复杂文件夹结构自动生成WiX片段的最佳方法是什么(可能使用heat.exe):

What is the best way to auto-generate a WiX fragment (likely using heat.exe) for a complex folder structure that contains media files:

  • 各种类型(ico/png/xaml/etc)
  • 这可能会定期更改(名称/位置/添加/删除)
  • 被归类为内容"并包含在.csproj中

是否可以通过WiX将其内置到安装程序中,并且可以承受用礼节进行的升级和修补?

such that they can be built into an installer via WiX and would withstand upgrades and patches with decorum?

  1. 我找到了heat.exe,它似乎可以解决自动生成的WiX片段要求
  2. 在使"dir"收割机正常工作时,我注意到了"project"收割机(命令行帮助)
  3. 媒体已经在C#项目文件中,因此请注意"-pog:Content"可能做得很好
  4. 光标搜索发现过时的文档中没有提到项目"收割机
  5. 已实现的整个项目安装程序可能可以使用项目"收割机来完成,但不确定如何支持它,以及陷阱是什么.
  6. 看到了"PUT-GUID-HERE"的产生,并意识到自动生成的guid可能会带来升级/补丁问题.
  7. 意识到必须有人将这些工具用于类似目的,并且可能会为我指明正确的方向.

(相当)指出v3尚未完成"(因此缺乏文档和教程).我现在得到的感觉是,在我的构建脚本中实现此自动化并非易事,并且工具正在不断发展以缓解这一问题.

It was (fairly) pointed out that v3 is not yet "done" (thus the scarceness of documentation and tutorials). The sense that I get now is that it is non-trivial to automate this in my build scripts, and the tools are growing right now to ease this.

推荐答案

根据我的经验,约翰·罗宾斯(John Robbins)的

In my experience John Robbins' Paraffin solves alot of the issues with tallow.exe (heat.exe in v3). I'm not sure if Paraffin plays nicely with v3, but it might be worth checking out.

仅供参考,我在构建过程中使用了Paraffin,它使我可以删除以前涉及Powershell脚本的2-3步骤清理过程.

FYI, I've used Paraffin in a build process and it allowed me to remove the previous 2-3 step cleanup process that involved a powershell script.

这篇关于在Visual Studio 2008和WiX(v3)中使用heat.exe收集.csproj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆