我有一个包含 4 个项目的 C# 解决方案,只有一个为 3 个项目创建的 dll 和一个来自主项目的 exe。我从未使用过 WIX,但遵循了简单的示例,并且能够编译我的代码,但只部署了 .exe。我尝试修改以添加其他项目:
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="ProductComponent">
<File Source="$(var.MedusaPerfApp.TargetPath)" />
<File Source="$(var.CustomClassLibrary.TargetPath)" />
<File Source="$(var.CustomControls.TargetPath)" />
<File Source="$(var.MultitaskingFramework.TargetPath)" />
</Component>
</ComponentGroup>
</Fragment>
我收到以下错误:
Error 3 The Component/@Guid attribute's value '*' is not valid for this component because it does not meet the criteria for having an automatically generated guid. Components with more than one file cannot use an automatically generated guid unless a versioned file is the keypath and the other files are unversioned. This component has a non-keypath file that is versioned. Create multiple components to use automatically generated guids.