diff --git a/tools/verify_build.rsp b/tools/verify_build.rsp index 234f99b..73da5cd 100644 --- a/tools/verify_build.rsp +++ b/tools/verify_build.rsp @@ -14,13 +14,13 @@ /r:System.Xml.dll /r:System.IO.Compression.dll /r:System.IO.Compression.FileSystem.dll -/r:"C:\Program Files (x86)\SharpDevelop\5.2\bin\Smart.CustomComponents.dll" -/r:"C:\Program Files (x86)\SharpDevelop\5.2\bin\WeifenLuo.WinFormsUI.Docking.dll" -/r:"C:\Program Files (x86)\SharpDevelop\5.2\bin\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll" +/r:"lib\Smart.CustomComponents.dll" +/r:"lib\WeifenLuo.WinFormsUI.Docking.dll" +/r:"lib\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll" /r:"lib\AdvancedDataGridView.dll" /r:"lib\Microsoft.Web.WebView2.Core.dll" /r:"lib\Microsoft.Web.WebView2.WinForms.dll" -/r:"C:\Program Files (x86)\SharpDevelop\5.2\bin\System.Data.SQLite.dll" +/r:"lib\System.Data.SQLite.dll" /r:"lib\NPOI.dll" /r:"lib\NPOI.OOXML.dll" /r:"lib\NPOI.OpenXml4Net.dll" diff --git a/成套报价软件/lib/System.Data.SQLite.dll b/成套报价软件/lib/System.Data.SQLite.dll new file mode 100644 index 0000000..7b3f5bf Binary files /dev/null and b/成套报价软件/lib/System.Data.SQLite.dll differ diff --git a/成套报价软件/lib/System.Memory.dll b/成套报价软件/lib/System.Memory.dll new file mode 100644 index 0000000..5d19470 Binary files /dev/null and b/成套报价软件/lib/System.Memory.dll differ diff --git a/成套报价软件/lib/System.Numerics.Vectors.dll b/成套报价软件/lib/System.Numerics.Vectors.dll new file mode 100644 index 0000000..0865972 Binary files /dev/null and b/成套报价软件/lib/System.Numerics.Vectors.dll differ diff --git a/成套报价软件/lib/System.Resources.Extensions.dll b/成套报价软件/lib/System.Resources.Extensions.dll new file mode 100644 index 0000000..73e49c8 Binary files /dev/null and b/成套报价软件/lib/System.Resources.Extensions.dll differ diff --git a/成套报价软件/lib/System.Runtime.CompilerServices.Unsafe.dll b/成套报价软件/lib/System.Runtime.CompilerServices.Unsafe.dll new file mode 100644 index 0000000..de9e124 Binary files /dev/null and b/成套报价软件/lib/System.Runtime.CompilerServices.Unsafe.dll differ diff --git a/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll b/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll new file mode 100644 index 0000000..3ce159f Binary files /dev/null and b/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll differ diff --git a/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.dll b/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.dll new file mode 100644 index 0000000..808dbe4 Binary files /dev/null and b/成套报价软件/lib/WeifenLuo.WinFormsUI.Docking.dll differ diff --git a/成套报价软件/lib/log4net.dll b/成套报价软件/lib/log4net.dll new file mode 100644 index 0000000..ffc57e1 Binary files /dev/null and b/成套报价软件/lib/log4net.dll differ diff --git a/成套报价软件/成套报价软件.csproj b/成套报价软件/成套报价软件.csproj index 82dc6a0..f9bc2a1 100644 --- a/成套报价软件/成套报价软件.csproj +++ b/成套报价软件/成套报价软件.csproj @@ -39,7 +39,7 @@ True - F:\Visual Studio\1\33\SharpDevelop-master\bin\log4net.dll + lib\log4net.dll 4.0 @@ -53,7 +53,7 @@ True - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\Smart.CustomComponents.dll + ..\lib\Smart.CustomComponents.dll @@ -65,23 +65,23 @@ 3.5 - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\System.Data.SQLite.dll + ..\lib\System.Data.SQLite.dll - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\System.Memory.dll + ..\lib\System.Memory.dll True - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\System.Numerics.Vectors.dll + ..\lib\System.Numerics.Vectors.dll True - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\System.Resources.Extensions.dll + ..\lib\System.Resources.Extensions.dll True - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\System.Runtime.CompilerServices.Unsafe.dll + ..\lib\System.Runtime.CompilerServices.Unsafe.dll True @@ -91,10 +91,10 @@ 3.5 - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\WeifenLuo.WinFormsUI.Docking.dll + ..\lib\WeifenLuo.WinFormsUI.Docking.dll - ..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll + ..\lib\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll lib\NPOI.dll diff --git a/部署打包指南.md b/部署打包指南.md index a9f1cc5..228cd94 100644 --- a/部署打包指南.md +++ b/部署打包指南.md @@ -22,11 +22,13 @@ git 仓库为控制体积,**故意不存**以下运行时资源(可用其他 | 工具 | 获取 | 用途 | |---|---|---| | **.NET Framework 4.8 + Developer Pack** | 微软官网 NDP48-DevPack 离线包 | 编译(缺 Dev Pack 会报 MSB3644) | -| **定制版 SharpDevelop 5.2**(MSI) | 项目配套安装包,装到默认 `C:\Program Files (x86)\SharpDevelop\5.2\` | ①提供编译引用的 Smart.CustomComponents/WeifenLuo/System.Data.SQLite 等 DLL ②SD 设计器改窗体(必须是最新构建,旧包缺控件) | +| **定制版 SharpDevelop 5.2**(MSI) | 项目配套安装包,装到默认 `C:\Program Files (x86)\SharpDevelop\5.2\` | **仅改窗体布局时需要**(SD 设计器);命令行编译/打包**不需要**——2026-10-01 起全部依赖 DLL 已本地化到 `lib\`(22 个),clone 即可编译 | | **Inno Setup 6 + 中文语言包** | 官网 + `ChineseSimplified.isl`(装法见打包技能第 3 步) | 打安装包 | | **Python 3** | python.org | 打包脚本 make_package.py 等 | | **git** | 任意 | 克隆/提交 | +> **依赖本地化说明(2026-10-01)**:csproj 与 verify_build.rsp 的全部第三方引用(Smart.CustomComponents、WeifenLuo×2、System.Data.SQLite、log4net、System.Memory/Numerics/Unsafe/Resources.Extensions 等)已统一指向项目内 `成套报价软件\lib\`,不再引用 `Program Files\SharpDevelop` 或 F 盘源码仓。新增/升级依赖 DLL 一律放 `lib\` 并同步 csproj+rsp。 + ## 三、环境准备(一次性,装完即可反复打包) ```powershell @@ -41,6 +43,8 @@ cd ctbjrj # 即仓库根 $src = 'C:\成套报价软件' # 3a. bin\Debug 运行数据(make_package 从这里取数) mkdir 成套报价软件\bin\Debug -Force +# ★ 依赖 DLL 全部从项目内 lib\ 复制(自包含,不依赖外部环境) +Copy-Item 成套报价软件\lib\*.dll 成套报价软件\bin\Debug\ -Force Copy-Item "$src\licenses" 成套报价软件\bin\Debug\licenses -Recurse Copy-Item "$src\元件库网页" 成套报价软件\bin\Debug\元件库网页 -Recurse Copy-Item "$src\sjk" 成套报价软件\bin\Debug\sjk -Recurse # 种子库;bjb\方案库 个人数据可不拷 @@ -96,7 +100,7 @@ python tools\make_package.py | 现象 | 原因 | 处置 | |---|---|---| | 编译报 CS2001 全部源文件找不到 | 工作目录错了 | 必须 `成套报价软件\` 子目录里跑 `@..\tools\verify_build.rsp` | -| 编译报缺 Smart.CustomComponents 等 | 没装定制版 SharpDevelop 或装在非默认位置 | 装 MSI 到默认目录;非默认位置需改 rsp 引用路径 | +| 编译报缺 Smart.CustomComponents 等 | lib\ 目录不完整 | 核对 `成套报价软件\lib\` 应有 22 个 DLL(git 里有);2026-10-01 后不再依赖装 SharpDevelop | | make_package 提示缺 icons/licenses/元件库网页 | 第三节 3a 没做 | 按映射表补拷 | | 打出的包 CAD 打不开/缺字体 | CAD-Viewer dist 或 node 没恢复 | 按第三节 3b 补拷 | | AI 助手起不来 | zcode 发行包缺失 | 按第三节 3c 补拷 |