mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-25 19:56:10 +08:00
050226fdcc
* CI: make `any` fully platform unspecific [38ab47c
] As https://docs.microsoft.com/en-us/dotnet/core/deploying/deploy-with-cli points out, dotnet >3.1 will produce a platform-specific executable by default unless set UseAppHost=false * chore: set UseAppHost to false when publishing [0fbfb10
] Co-authored-by: genteure <genteure@gmail.com>
48 lines
2.6 KiB
XML
48 lines
2.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<StartupObject>BililiveRecorder.Cli.Program</StartupObject>
|
|
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
|
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
|
|
<RuntimeIdentifiers>win-x64;osx-x64;osx.10.11-x64;linux-arm64;linux-arm;linux-x64</RuntimeIdentifiers>
|
|
<RuntimeIdentifier Condition=" '$(RuntimeIdentifier)' == 'any' "></RuntimeIdentifier>
|
|
<UseAppHost Condition=" '$(RuntimeIdentifier)' == '' and '$(Configuration)' != 'Debug' ">false</UseAppHost>
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' == '' ">publish\any\$(Configuration)</PublishDir>
|
|
<PublishDir Condition=" '$(RuntimeIdentifier)' != '' ">publish\$(RuntimeIdentifier)\$(Configuration)</PublishDir>
|
|
<SelfContained Condition=" '$(RuntimeIdentifier)' == '' ">false</SelfContained>
|
|
<SelfContained Condition=" '$(SelfContained)' == '' ">true</SelfContained>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="publish\**" />
|
|
<EmbeddedResource Remove="publish\**" />
|
|
<None Remove="publish\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
|
|
<PackageReference Include="Serilog" Version="2.11.0" />
|
|
<PackageReference Include="Serilog.AspNetCore" Version="6.0.1" />
|
|
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.2" />
|
|
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
|
|
<PackageReference Include="Serilog.Exceptions" Version="8.4.0" />
|
|
<PackageReference Include="Serilog.Expressions" Version="3.4.0" />
|
|
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
|
|
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
|
|
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
|
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
|
|
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />
|
|
<PackageReference Include="System.Diagnostics.Process" Version="4.3.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\BililiveRecorder.Core\BililiveRecorder.Core.csproj" />
|
|
<ProjectReference Include="..\BililiveRecorder.ToolBox\BililiveRecorder.ToolBox.csproj" />
|
|
<ProjectReference Include="..\BililiveRecorder.Web\BililiveRecorder.Web.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|