开发者

How to specify Assembly attribute in a WiX Fragment generated using Heat.exe from the command line

I am using Heat.exe to harvest a directory containing my DLLs that need to go into the GAC. The fragment is correctly created and I can build my MSI. The pro开发者_运维技巧blem I am having is that after the wxs source file is created I have to manually edit the file adding the File/@Assembly =".net" attribute.

Is there a way to have heat include Assembly=".net" for each File when using heat.exe from the command line?

Using WiX 3.0.


There's no ad hoc attribute for this, probably because you can have your own rules, which files need this attribute, and which do not.

However, you can apply XSLT transform to the heat output and adjust the resulting XML (WXS file) the way you need. Take a look at -t:<xsl> switch for more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜