yuuko
|
a156fff7f4
|
优化部署方案:降级到 .NET Framework 4.5.2 并创建完整打包脚本
- 降级目标框架从 .NET Framework 4.8 到 4.5.2,提高系统兼容性
- 移除新版特性支持,确保在大多数 Windows 系统(Win7-Win11)上直接运行
- 添加 build.bat - 基础编译脚本
- 添加 打包发布.bat - 一键打包发布脚本,自动生成完整发布包
- 添加 部署指南.md - 详细的部署和使用说明文档
- 打包脚本会自动创建使用说明、技术文档和启动脚本
- 实现真正的绿色软件部署:无需安装,复制即用
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 17:13:20 +08:00 |
|
yuuko
|
53e280b7f4
|
恢复为.NET Framework 4.8配置
恢复项目为传统的.NET Framework 4.8格式:
- 使用ToolsVersion=15.0
- TargetFrameworkVersion=v4.8
- 手动添加System.WindowsForms等引用
- 移除Modern SDK配置
现在可以安装NDP48-DevPack-CHS来获取开发工具
编译后的程序仍然需要在有.NET Framework 4.8运行时的机器上运行
🤖 Generated with [Claude Code](https://caude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 17:09:54 +08:00 |
|
yuuko
|
44a3e8d752
|
升级到.NET 6.0以实现真正的自包含发布
升级项目从.NET Framework 4.8到.NET 6.0-windows:
- 使用Microsoft.NET.Sdk(现代项目格式)
- TargetFramework改为net6.0-windows
- 启用ImplicitUsings和Nullable
- 保持UseWindowsForms配置
现在支持真正的自包含发布,可以生成包含.NET运行时的独立exe文件
🤖 Generated with [Claude Code](https://claude.com/claude.com)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 17:02:40 +08:00 |
|
yuuko
|
55f3f20369
|
移除不存在的Properties文件引用
- 移除Properties\AssemblyInfo.cs引用
- 移除Properties\Resources.Designer.cs引用
- 移除Properties\Settings.Designer.cs引用
- 移除Properties\Settings.settings引用
- 移除app.manifest引用
这些文件在项目中不存在,导致编译失败
🤖 Generated with [Claude Code](https://claude.com/claude.com)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 17:00:50 +08:00 |
|
yuuko
|
8e852485c4
|
转换为传统.NET Framework项目格式
转换项目为Visual Studio传统的项目格式:
- 移除Microsoft.NET.Sdk
- 使用ToolsVersion=15.0
- 手动添加所有引用
- 配置TargetFrameworkVersion=v4.8
- 添加UseWindowsForms=true
这样可以避免SDK版本兼容性问题,确保正常的编译和发布
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 16:59:46 +08:00 |
|
yuuko
|
3696e4255a
|
修复.NET Framework发布配置问题
移除不兼容的PublishSingleFile配置:
- .NET Framework 4.8不支持PublishSingleFile
- 移除IncludeNativeLibrariesForSelfExtract(Core功能)
- 保留SelfContained和PublishReadyToRun
现在使用命令:dotnet publish -c Release -r win-x64 --self-contained
生成的会是包含多个文件的发布文件夹,用户可以直接运行主exe
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 16:57:23 +08:00 |
|
yuuko
|
276f277310
|
移除RuntimeIdentifier配置,让用户手动选择
移除<RuntimeIdentifier>win-x64</RuntimeIdentifier>配置
让用户在Visual Studio发布界面中手动选择运行时
这样可以避免配置冲突,确保发布设置正确生效
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 16:54:26 +08:00 |
|
yuuko
|
9c96a10295
|
配置为Self-contained发布
添加自包含发布配置,生成独立可执行文件:
- SelfContained=true:包含.NET Framework运行时
- PublishSingleFile=true:生成单个exe文件
- PublishReadyToRun=true:预编译优化
- IncludeNativeLibrariesForSelfExtract=true:包含自解压库
- RuntimeIdentifier=win-x64:针对64位Windows
这样生成的exe文件约60-100MB,可在任何Windows系统上运行,无需预装.NET Framework
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-24 16:46:06 +08:00 |
|
|
|
3f38a8c323
|
添加项目文件。
|
2025-11-24 10:59:56 +08:00 |
|