-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
103 lines (88 loc) · 4.24 KB
/
Copy pathDirectory.Build.props
File metadata and controls
103 lines (88 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<Project>
<!-- JD.Worker - Common Build Properties -->
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest</AnalysisLevel>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn> <!-- Remove when docs are complete -->
<!-- Deterministic builds -->
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<!-- Versioning -->
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<!-- Package metadata -->
<Authors>JD</Authors>
<Company>JD</Company>
<Product>JD.Worker</Product>
<Copyright>Copyright (c) 2025 JD</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/JerrettDavis/JD.Worker</PackageProjectUrl>
<RepositoryUrl>https://github.com/JerrettDavis/JD.Worker.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>worker;job;queue;distributed;aot</PackageTags>
</PropertyGroup>
<!-- AOT Configuration -->
<PropertyGroup Condition="'$(PublishAot)' == 'true'">
<PublishAot>true</PublishAot>
<TrimMode>link</TrimMode>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
<InvariantGlobalization>true</InvariantGlobalization>
<StripSymbols>true</StripSymbols>
</PropertyGroup>
<!-- Trimming warnings -->
<PropertyGroup>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
</PropertyGroup>
<!-- Test projects -->
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
<EnableAotAnalyzer>false</EnableAotAnalyzer>
<!-- Suppress TBDD010: source-gen optimization requires partial classes; the source generator produces invalid code for these patterns in TinyBDD 0.19.26 -->
<NoWarn>$(NoWarn);TBDD010</NoWarn>
</PropertyGroup>
<!-- Orchestrator projects are not AOT-trimmed -->
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('JD.Worker.Orchestrator'))">
<IsTrimmable>false</IsTrimmable>
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
<EnableAotAnalyzer>false</EnableAotAnalyzer>
<WarningsNotAsErrors>$(WarningsNotAsErrors);IL2026;IL3050;IL2111</WarningsNotAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'JD.Worker.Configuration'">
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
<EnableAotAnalyzer>false</EnableAotAnalyzer>
<WarningsNotAsErrors>$(WarningsNotAsErrors);IL2026;IL3050</WarningsNotAsErrors>
</PropertyGroup>
<!-- Source Link -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!-- Disable SourceLink when no git metadata exists -->
<PropertyGroup Condition="!Exists('$(MSBuildThisFileDirectory).git')">
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
<SourceLinkCreate>false</SourceLinkCreate>
<SuppressSourceLinkWarnings>true</SuppressSourceLinkWarnings>
</PropertyGroup>
<ItemGroup Condition="Exists('$(MSBuildThisFileDirectory).git')">
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
</ItemGroup>
</Project>