mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 00:20:08 +00:00
Skipping a 20 KB stub in OS-specific non-windows builds and omitting a few very fast if checks isn't worth the code quality degradation that involves all of the ifdef options. ifdefs should be reserved for stuff that either doesn't compile whatsoever in some specific configurations (NETFRAMEWORK), or is required to make logical decisions based on the compiler input (e.g. DEBUG for detecting debugging builds or ASF_VARIANT_* for hardcoding the platform identifier to use for auto-updates) In all other situations, we should use OperatingSystem if condition, even if it's equal to hitting them on the platforms that are unlikely to hit them. And I say unlikely, because nothing stops me from downloading a win-x64 build and running it like a generic one on windows, what you gonna do?
83 lines
3.6 KiB
XML
83 lines
3.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<DefaultItemExcludes>$(DefaultItemExcludes);config/**;debug/**;logs/**;overlay/**</DefaultItemExcludes>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
|
|
<OutputType>Exe</OutputType>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="AngleSharp.XPath" />
|
|
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
|
|
<PackageReference Include="CryptSharpStandard" />
|
|
<PackageReference Include="Humanizer" />
|
|
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
|
|
<PackageReference Include="Markdig.Signed" />
|
|
<PackageReference Include="Newtonsoft.Json" />
|
|
<PackageReference Include="Nito.AsyncEx.Coordination" />
|
|
<PackageReference Include="NLog.Web.AspNetCore" />
|
|
<PackageReference Include="SteamKit2" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" />
|
|
<PackageReference Include="System.Composition" />
|
|
<PackageReference Include="System.Linq.Async" />
|
|
<PackageReference Include="zxcvbn-core" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' != 'net48'">
|
|
<PackageReference Include="System.Security.Cryptography.ProtectedData" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
|
|
<PackageReference Include="Microsoft.AspNetCore.Cors" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" />
|
|
<PackageReference Include="Microsoft.AspNetCore.HttpOverrides" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Localization" />
|
|
<PackageReference Include="Microsoft.AspNetCore.ResponseCaching" />
|
|
<PackageReference Include="Microsoft.AspNetCore.ResponseCompression" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
|
|
<PackageReference Include="Microsoft.AspNetCore.WebSockets" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" />
|
|
<Reference Include="System.Net.Http" HintPath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Net.Http.dll" />
|
|
<Reference Include="System.Security" HintPath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Security.dll" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<TrimmerRootDescriptor Include="TrimmerRoots.xml" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Update="Localization\Strings.resx">
|
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
|
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Localization\Strings.Designer.cs">
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Strings.resx</DependentUpon>
|
|
<DesignTime>True</DesignTime>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="..\LICENSE-2.0.txt">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
|
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
</Content>
|
|
<Content Include="overlay\all\**\*.*">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
|
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
</Content>
|
|
<Content Include="..\ASF-ui\dist\**\*.*">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<Link>www\%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
</Content>
|
|
</ItemGroup>
|
|
</Project>
|