mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
49 lines
2.3 KiB
XML
49 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<LangVersion>9.0</LangVersion>
|
|
<StartupObject>BililiveRecorder.Cli.Program</StartupObject>
|
|
<RuntimeIdentifiers>win-x64;osx-x64;osx.10.11-x64;linux-arm64;linux-arm;linux-x64</RuntimeIdentifiers>
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' == '' ">publish\any</PublishDir>
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' != '' ">publish\$(RuntimeIdentifier)</PublishDir>
|
|
<SelfContained Condition=" '$(RuntimeIdentifier)' == '' ">false</SelfContained>
|
|
<SelfContained Condition=" '$(SelfContained)' == '' ">true</SelfContained>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Remove="publish\**" />
|
|
<EmbeddedResource Remove="publish\**" />
|
|
<None Remove="publish\**" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Remove="NLog.config" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="..\TempBuildInfo\BuildInfo.Cli.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="NLog.config">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
|
|
<PackageReference Include="Serilog" Version="2.10.0" />
|
|
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.1" />
|
|
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
|
|
<PackageReference Include="Serilog.Exceptions" Version="6.0.0" />
|
|
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
|
|
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
|
|
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\BililiveRecorder.Core\BililiveRecorder.Core.csproj" />
|
|
</ItemGroup>
|
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
|
<Exec Command="cd $(SolutionDir)
powershell -ExecutionPolicy Bypass -File .\CI\patch_buildinfo.ps1 Cli" />
|
|
</Target>
|
|
</Project>
|