5 Commits

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