我需要创建一个包含 .NET 4.6.1 的安装包。独立安装程序。我已经按照\WixSharp\Samples\Bootstrapper\WixBootstrapper_NoUI
示例进行了操作——它适用于 .NET 4.6。独立安装程序NetFx46Redist
:
var bootstrapper =
new Bundle("My Product Suite",
new PackageGroupRef("NetFx46Redist"),
new MsiPackage(productMsi)
{
Id = "MyProductPackageId",
DisplayInternalUI = true
});
但是,在使用 .NET 4.6.1 时。包组 id NetFx461Redist
,我收到以下错误:
BootstrapperBundle.wxs
Windows Installer XML Toolset Linker version 3.10.3.3007
Copyright (c) .NET Foundation and contributors. All rights reserved.
C:\WixSharp\Samples\Bootstrapper\WixBootstrapper_NoUI\BootstrapperBundle.wxs(13) : error LGHT0094 : Unresolved reference to symbol 'ChainPackageGroup:NetFx461Redist' in section 'Bundle:My Product Suite'.
我究竟做错了什么?
谢谢你,
帕洛