- 设置应用图标为app.ico - 移除了临时创建的favicon.ico文件 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<AssemblyName>ExcelMerger</AssemblyName>
|
|
<RootNamespace>ExcelMerger</RootNamespace>
|
|
<ApplicationIcon>app.ico</ApplicationIcon>
|
|
<!-- 用于单文件发布的配置 -->
|
|
<PublishSingleFile>false</PublishSingleFile>
|
|
<SelfContained>false</SelfContained>
|
|
<PublishReadyToRun>true</PublishReadyToRun>
|
|
<!-- 强制将所有依赖项合并到输出目录 -->
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="EPPlus" Version="4.5.3.3" />
|
|
<!-- 用于ILMerge合并依赖项 -->
|
|
<PackageReference Include="ILRepack" Version="2.0.18" />
|
|
</ItemGroup>
|
|
|
|
<!-- ILMerge后处理脚本 -->
|
|
<Target Name="ILRepack" AfterTargets="Build">
|
|
<ItemGroup>
|
|
<InputAssemblies Include="$(OutputPath)$(AssemblyName).exe" />
|
|
<InputAssemblies Include="$(OutputPath)EPPlus.dll" />
|
|
</ItemGroup>
|
|
<Message Text="ILRepack merging..." Importance="high" />
|
|
<Exec Command="$(PkgILRepack)\tools\ILRepack.exe /target:exe /out:$(OutputPath)$(AssemblyName)_merged.exe @(InputAssemblies->'%(FullPath)', ' ')" />
|
|
<Message Text="ILRepack merge complete: $(OutputPath)$(AssemblyName)_merged.exe" Importance="high" />
|
|
</Target>
|
|
|
|
</Project> |