Wix 4 Harvest 目录的解释?

问题描述 投票:0回答:0

我正在尝试学习 Wix 4.0 来为我正在开发的应用程序创建安装程序。构建应用程序后,我有一堆文件,一个文件夹,我想将其安装到程序文件中,我已经读到收获功能允许我简化此过程并为整个目录创建组件映射,但我不确定这个 example 显示的是什么。我很好奇

<ItemGroup>
标签是什么,我想我对如何将其指向我的目录以便使用组件存在根本性的误解。

<Project Sdk="WixToolset.Sdk">
  <ItemGroup>
    <HarvestDirectory Include="FilesDir">
      <ComponentGroupName>HarvestedComponents</ComponentGroupName>
      <DirectoryRefId>ApplicationFolder</DirectoryRefId>
      <SuppressRootDirectory>true</SuppressRootDirectory>
    </HarvestDirectory>

    <BindPath Include="FilesDir" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="WixToolset.Heat" />
  </ItemGroup>
</Project>

谢谢,我会在需要的地方编辑更多信息。

wix wix4
© www.soinside.com 2019 - 2024. All rights reserved.