上传文件至 /

This commit is contained in:
2025-10-22 01:16:48 +08:00
parent b91918a1c9
commit f89ae74a0f
4 changed files with 53 additions and 2 deletions

26
update.csproj Normal file
View File

@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<StartupObject>Program</StartupObject>
<!-- 生成 exe 相关 -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <!-- 必须指定,否则只生成 dll -->
<PlatformTarget>x64</PlatformTarget>
<PublishSingleFile>true</PublishSingleFile> <!-- 生成单文件 exe -->
<SelfContained>true</SelfContained> <!-- false依赖本地 .NET 8 Runtime -->
<!-- 输出目录 -->
<PublishDir>$(MSBuildProjectDirectory)\OUT\</PublishDir>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MySql.Data" Version="9.4.0" />
<PackageReference Include="System.Management" Version="9.0.8" />
<PackageReference Include="YamlDotNet" Version="16.3.0" />
</ItemGroup>
</Project>