This repository has been archived on 2026-10-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Ananta-ps/tools/launcher/DrmkLauncher.csproj
T

39 lines
1.7 KiB
XML
Raw Normal View History

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<!-- ⛑ 用 net10.0 而不是 net8.0:本机只装了 Microsoft.NETCore.App.Ref 10.0.11,
选 net8.0 会去 NuGet 拉 8.0 的引用包(离线必失败)。运行时 8.0.13 / 10.0.11 都在。 -->
<TargetFramework>net10.0-windows</TargetFramework>
<!-- 界面用的是 WinForms。需要 Microsoft.WindowsDesktop.App 运行时,本机已装 10.0.11。 -->
<UseWindowsForms>true</UseWindowsForms>
<AssemblyName>DrmkLauncher</AssemblyName>
<RootNamespace>DrmkLauncher</RootNamespace>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
<!-- 源码里有中文:让 csc 按 UTF-8 读(同时 Program.cs 本身也带 BOM,双保险) -->
<CodePage>65001</CodePage>
<!-- 图标 + 提权清单 -->
<ApplicationIcon>app.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<!-- 单文件、依赖本机已装的 .NET 8 运行时(服务端本来就要它),产物很小 -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<DebugType>none</DebugType>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<!-- ⛑ 单文件发布后磁盘上没有 app.ico,任务栏图标得靠运行时从程序集里读出来 -->
<EmbeddedResource Include="app.ico" />
</ItemGroup>
</Project>