7 Commits

Author SHA1 Message Date
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