配置为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>
This commit is contained in:
parent
91d45f9074
commit
9c96a10295
@ -8,6 +8,13 @@
|
|||||||
<RootNamespace>SlideCombine</RootNamespace>
|
<RootNamespace>SlideCombine</RootNamespace>
|
||||||
<ApplicationIcon>app.ico</ApplicationIcon>
|
<ApplicationIcon>app.ico</ApplicationIcon>
|
||||||
<Win32Resource />
|
<Win32Resource />
|
||||||
|
|
||||||
|
<!-- 自包含发布配置 -->
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<PublishReadyToRun>true</PublishReadyToRun>
|
||||||
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||||
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user