WinformsApp1/WinFormsApp1/WinFormsApp1.csproj
Developer ee620a3255 转换为通用WinForms应用模板
## 主要功能
- 清理Excel合并业务逻辑,保留基础框架
- 单exe打包配置(ILRepack示例)
- 应用图标和UI按钮图标配置
- .NET Framework 4.8环境检测
- 通用UI界面(文件夹选择、日志显示等)

## 模板用途
可直接作为新WinForms项目的基础模板
- 只需添加具体业务逻辑即可
- 支持Win7兼容性
- 完整的打包和图标配置示例

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 14:45:46 +08:00

36 lines
1.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net48</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<AssemblyName>WinFormsAppTemplate</AssemblyName>
<RootNamespace>WinFormsAppTemplate</RootNamespace>
<ApplicationIcon>app.ico</ApplicationIcon>
<!-- 用于单文件发布的配置 -->
<PublishSingleFile>false</PublishSingleFile>
<SelfContained>false</SelfContained>
<PublishReadyToRun>true</PublishReadyToRun>
<!-- 强制将所有依赖项合并到输出目录 -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<!-- 模板项目不需要外部依赖 -->
<!-- 如需合并第三方DLL可在此添加PackageReference -->
<!-- 示例:
<ItemGroup>
<PackageReference Include="ILRepack" Version="2.0.18" />
</ItemGroup>
<Target Name="ILRepack" AfterTargets="Build">
<ItemGroup>
<InputAssemblies Include="$(OutputPath)$(AssemblyName).exe" />
<InputAssemblies Include="$(OutputPath)YourLibrary.dll" />
</ItemGroup>
<Message Text="ILRepack merging..." Importance="high" />
<Exec Command="$(PkgILRepack)\tools\ILRepack.exe /target:exe /out:$(OutputPath)$(AssemblyName)_merged.exe @(InputAssemblies-&gt;'%(FullPath)', ' ')" />
<Message Text="ILRepack merge complete: $(OutputPath)$(AssemblyName)_merged.exe" Importance="high" />
</Target>
-->
</Project>