上传文件至 /
This commit is contained in:
26
update.csproj
Normal file
26
update.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user