chore(deps): update asf-ui digest to d857ce5
[ArchiSteamFarm.git] / Directory.Build.props
blobba50125d56a64a51d290fa9b5f942456e99e3bb4
1 <Project>
2         <PropertyGroup>
3                 <Version>6.0.2.7</Version>
4         </PropertyGroup>
6         <PropertyGroup>
7                 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8                 <AnalysisMode>AllEnabledByDefault</AnalysisMode>
9                 <ApplicationIcon>../resources/ASF.ico</ApplicationIcon>
10                 <Authors>JustArchi</Authors>
11                 <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
12                 <Company>JustArchiNET</Company>
13                 <Copyright>Copyright © 2015-$([System.DateTime]::UtcNow.Year) $(Company)</Copyright>
14                 <Description>ASF is a C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.</Description>
15                 <Deterministic>true</Deterministic>
16                 <ErrorReport>none</ErrorReport>
17                 <LangVersion>latest</LangVersion>
18                 <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
19                 <NeutralLanguage>en</NeutralLanguage>
20                 <NoWarn>1591,NU1507</NoWarn>
21                 <Nullable>enable</Nullable>
22                 <PackageIcon>../resources/ASF.ico</PackageIcon>
23                 <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
24                 <PackageProjectUrl>https://github.com/$(Company)/ArchiSteamFarm</PackageProjectUrl>
25                 <PackageReadmeFile>README.md</PackageReadmeFile>
26                 <PackageReleaseNotes>$(PackageProjectUrl)/releases</PackageReleaseNotes>
27                 <RepositoryBranch>main</RepositoryBranch>
28                 <RepositoryType>Git</RepositoryType>
29                 <RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
30                 <RollForward>LatestMajor</RollForward>
31                 <RuntimeIdentifiers>linux-arm;linux-arm64;linux-x64;osx-arm64;osx-x64;win-arm64;win-x64</RuntimeIdentifiers>
32                 <TargetFramework>net8.0</TargetFramework>
33                 <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
34         </PropertyGroup>
36         <PropertyGroup Condition="'$(ASFVariant)' != ''">
37                 <DefineConstants>$(DefineConstants);ASF_VARIANT_$(ASFVariant.Replace('-', '_').ToUpperInvariant())</DefineConstants>
38         </PropertyGroup>
40         <!-- Default configuration for fast-debugging builds -->
41         <PropertyGroup Condition="'$(Configuration)' == 'DebugFast'">
42                 <AnalysisMode>AllDisabledByDefault</AnalysisMode>
43                 <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
44         </PropertyGroup>
46         <!-- Default configuration for release builds -->
47         <PropertyGroup Condition="'$(Configuration)' == 'Release'">
48                 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
49                 <DebugSymbols>false</DebugSymbols>
50                 <DebugType>none</DebugType>
51                 <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
52                 <WarningsAsErrors />
53                 <WarningsNotAsErrors>CA1863,CS8002,IL2026,IL2104,NU1901,NU1902,NU1903,NU1904</WarningsNotAsErrors>
54         </PropertyGroup>
56         <!-- Enable public signing if not part of Visual Studio, which is too stupid to understand what public signing is -->
57         <PropertyGroup Condition="'$(Configuration)' == 'Release' AND '$(BuildingInsideVisualStudio)' != 'true'">
58                 <AssemblyOriginatorKeyFile>../resources/ArchiSteamFarm.snk.pub</AssemblyOriginatorKeyFile>
59                 <DefineConstants>$(DefineConstants);ASF_SIGNED_BUILD</DefineConstants>
60                 <PublicSign>true</PublicSign>
61                 <SignAssembly>true</SignAssembly>
62         </PropertyGroup>
64         <!-- Private SNK signing -->
65         <PropertyGroup Condition="'$(Configuration)' == 'Release' AND EXISTS('resources/ArchiSteamFarm.snk')">
66                 <AssemblyOriginatorKeyFile>../resources/ArchiSteamFarm.snk</AssemblyOriginatorKeyFile>
67                 <DefineConstants>$(DefineConstants);ASF_SIGNED_BUILD</DefineConstants>
68                 <PublicSign>false</PublicSign>
69                 <SignAssembly>true</SignAssembly>
70         </PropertyGroup>
72         <!-- Trimming functionality as described on https://learn.microsoft.com/dotnet/core/deploying/trimming/trimming-options -->
73         <PropertyGroup Condition="'$(Configuration)' == 'Release'">
74                 <DebuggerSupport>false</DebuggerSupport>
75                 <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization>
76                 <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
77                 <EventSourceSupport>false</EventSourceSupport>
78                 <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
79                 <MetadataUpdaterSupport>false</MetadataUpdaterSupport>
80                 <StackTraceSupport>false</StackTraceSupport>
81                 <UseNativeHttpHandler>true</UseNativeHttpHandler>
82                 <TrimMode>partial</TrimMode>
83         </PropertyGroup>
84 </Project>