修复安装器本地 NuGet 包还原路径

This commit is contained in:
zhengxuan.zhang
2026-08-06 15:05:52 +08:00
parent 5e2f272a5e
commit 9197adac38
2 changed files with 15 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<!-- Keep packages.config dependencies beside the WiX projects. -->
<add key="repositoryPath" value="Setup\BundleInstaller\packages" />
</config>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<!-- Hex.Wix.Xeam 1.2.6 is a private/local package and is not published on nuget.org. -->
<add key="local-xeam" value="Setup\BundleInstaller\packages\Hex.Wix.Xeam.1.2.6" />
</packageSources>
</configuration>
+3
View File
@@ -44,6 +44,9 @@ BootstrapperBundleInstaller.exe
- `Setup\BundleInstaller\packages` 中的本地构建依赖
- `ReleaseFiles` 目录及 `Files.wxs` 中声明的外部文件
仓库根目录的 `NuGet.Config``packages.config` 的还原目录固定为
`Setup\BundleInstaller\packages`,并配置本地 `Hex.Wix.Xeam.1.2.6` 源。顶层方案还原时请使用该配置,避免 NuGet 错误地到 `XP.Installer\packages` 或 nuget.org 查找 Xeam 私有包。
## 目录职责
`XP.Installer` 是“通用安装框架 + 当前产品定制内容”的组合。