2020-12-17 18:55:58 +08:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
2020-01-05 23:47:38 +08:00
|
|
|
<PropertyGroup>
|
|
|
|
<OutputType>Exe</OutputType>
|
2020-11-15 22:13:43 +08:00
|
|
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
2020-12-21 19:08:44 +08:00
|
|
|
<Nullable>enable</Nullable>
|
|
|
|
<LangVersion>9.0</LangVersion>
|
2020-01-05 23:47:38 +08:00
|
|
|
<StartupObject>BililiveRecorder.Cli.Program</StartupObject>
|
2020-12-21 19:15:07 +08:00
|
|
|
<RuntimeIdentifiers>win-x64;osx-x64;osx.10.11-x64;linux-arm64;linux-arm;linux-x64</RuntimeIdentifiers>
|
2020-12-21 19:08:44 +08:00
|
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' == '' ">publish\any</PublishDir>
|
|
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' != '' ">publish\$(RuntimeIdentifier)</PublishDir>
|
|
|
|
<SelfContained Condition=" '$(RuntimeIdentifier)' == '' ">false</SelfContained>
|
|
|
|
<SelfContained Condition=" '$(SelfContained)' == '' ">true</SelfContained>
|
2020-12-21 04:09:23 +08:00
|
|
|
</PropertyGroup>
|
2020-06-21 19:36:43 +08:00
|
|
|
<ItemGroup>
|
2021-01-04 16:24:36 +08:00
|
|
|
<Compile Remove="publish\**" />
|
|
|
|
<EmbeddedResource Remove="publish\**" />
|
|
|
|
<None Remove="publish\**" />
|
|
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
2020-06-21 19:36:43 +08:00
|
|
|
<None Remove="NLog.config" />
|
|
|
|
</ItemGroup>
|
2020-01-05 23:47:38 +08:00
|
|
|
<ItemGroup>
|
|
|
|
<Compile Include="..\TempBuildInfo\BuildInfo.Cli.cs" />
|
|
|
|
</ItemGroup>
|
2020-06-21 19:36:43 +08:00
|
|
|
<ItemGroup>
|
|
|
|
<Content Include="NLog.config">
|
2021-02-07 14:06:33 +08:00
|
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
2020-06-21 19:36:43 +08:00
|
|
|
</Content>
|
|
|
|
</ItemGroup>
|
2020-01-05 23:47:38 +08:00
|
|
|
<ItemGroup>
|
2021-02-08 16:51:19 +08:00
|
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
|
|
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
|
2021-02-23 18:03:37 +08:00
|
|
|
<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" />
|
2020-01-05 23:47:38 +08:00
|
|
|
</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>
|