forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
238 lines (212 loc) · 16.3 KB
/
Directory.Build.props
File metadata and controls
238 lines (212 loc) · 16.3 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Update to next after release -->
<Version>6.2.1</Version>
<EF3Version>3.31.0</EF3Version>
<EF8Version>8.5.0</EF8Version>
<EF9Version>9.4.0</EF9Version>
<EF10Version>10.3.0</EF10Version>
<!-- Baselines update on next major release -->
<BaselineVersion>6.0.0</BaselineVersion>
<EF3BaselineVersion>3.28.0</EF3BaselineVersion>
<EF8BaselineVersion>8.2.0</EF8BaselineVersion>
<EF9BaselineVersion>9.1.0</EF9BaselineVersion>
<EF10BaselineVersion>10.0.0</EF10BaselineVersion>
<!--don't remove it! WPF doesn't work with non-4-component versions-->
<AssemblyVersion>$(Version).0</AssemblyVersion>
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">-local.1</VersionSuffix>
<ApplyVersionSuffix Condition=" '$(ApplyVersionSuffix)' == '' ">true</ApplyVersionSuffix>
<Configurations>Testing;Debug;Release;Azure</Configurations>
<AppDesignerFolder>Properties</AppDesignerFolder>
<LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<WarningLevel>9999</WarningLevel>
<ErrorReport>prompt</ErrorReport>
<!--1573: missing xmldoc-->
<!--1591: missing xmldoc-->
<NoWarn>1573;1591</NoWarn>
<Features>strict</Features>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)/Build/linq2db.snk</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<GenerateAssemblyTitleAttribute>true</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>true</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>true</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>true</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<!--required for SkipLocalInit-->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<!--feature flags to manage floating tfm in one place-->
<!--CompositeFormat type-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_COMPOSITE_FORMAT;$(DefineConstants)</DefineConstants>
<!--both DateOnly and TimeOnly-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_DATEONLY;$(DefineConstants)</DefineConstants>
<!--list.EnsureCapacity and enumerable.TryGetNonEnumeratedCount methods-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_ENSURE_CAPACITY;$(DefineConstants)</DefineConstants>
<!--Async transaction APIs, DbConnection.CloseAsync, etc-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">ADO_ASYNC;$(DefineConstants)</DefineConstants>
<!--DbException.IsTransient-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">ADO_IS_TRANSIENT;$(DefineConstants)</DefineConstants>
<!--Span operations-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_SPAN;$(DefineConstants)</DefineConstants>
<!--IsReadOnlyAttribute-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) OR $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net472')) ">SUPPORTS_READONLY;$(DefineConstants)</DefineConstants>
<!--regex generators-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_REGEX_GENERATORS;$(DefineConstants)</DefineConstants>
<!--(u)int128 types-->
<DefineConstants Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">SUPPORTS_INT128;$(DefineConstants)</DefineConstants>
<ArtifactsPath>$(MSBuildThisFileDirectory).build</ArtifactsPath>
<ArtifactsPivots>$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)</ArtifactsPivots>
</PropertyGroup>
<PropertyGroup Label="Nuget">
<GenericPackageTags>linq;linq2db;LinqToDB;ORM;database;DB;SQL</GenericPackageTags>
<DatabasePackageTags>Access;ClickHouse;DB2;LUW;Firebird;Informix;MySql;MariaDB;Oracle;PostgreSQL;SapHana;Hana;SQLCE;SQLite;SQLServer;Sybase;SAP;ASE;SqlServerCe;ODP;IBM</DatabasePackageTags>
<PackageTags>$(GenericPackageTags);$(DatabasePackageTags)</PackageTags>
<Authors>Igor Tkachev, Ilya Chudin, Svyatoslav Danyliv, Dmitry Lukashenko, and others</Authors>
<Company>linq2db.net</Company>
<Copyright>Copyright © 2026 $(Authors)</Copyright>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RepositoryUrl>https://github.com/linq2db/linq2db</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://linq2db.github.io</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/linq2db/linq2db/wiki/releases-and-roadmap#release-$(Version.Replace(".",""))</PackageReleaseNotes>
<PackageIcon>images\icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageVersion>$(Version)</PackageVersion>
<PackageVersion Condition=" '$(ApplyVersionSuffix)' == 'true' ">$(PackageVersion)$(VersionSuffix)</PackageVersion>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>$(BaselineVersion)</PackageValidationBaselineVersion>
</PropertyGroup>
<ItemGroup Label="Nuget">
<None Include="$(MSBuildThisFileDirectory)/Nuget/icon.png" Pack="true" PackagePath="images\icon.png" Visible="False" />
</ItemGroup>
<PropertyGroup Label="Code Analysis Setup">
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<!--enable on release build only to not slowdown development/testing-->
<RunAnalyzersDuringBuild Condition="$(Configuration) == 'Release'">true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<AnalysisLevel>preview-All</AnalysisLevel>
<!--enable IDExxxx analyzers during build-->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ReportAnalyzer>true</ReportAnalyzer>
<!--workaround for https://github.com/dotnet/roslyn/issues/41640, but also required for xml-doc validation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Label="Enabled Polyfills">
<!--https://github.com/meziantou/Meziantou.Polyfill?tab=readme-ov-file#supported-polyfills-->
<Polyfill></Polyfill>
<Polyfill>$(Polyfill)|T:System.Diagnostics.CodeAnalysis</Polyfill>
<Polyfill>$(Polyfill)|T:System.Diagnostics.StackTraceHiddenAttribute</Polyfill>
<Polyfill>$(Polyfill)|T:System.HashCode</Polyfill>
<Polyfill>$(Polyfill)|T:System.Index</Polyfill>
<Polyfill>$(Polyfill)|T:System.Range</Polyfill>
<Polyfill>$(Polyfill)|T:System.Runtime.CompilerServices.CallerArgumentExpressionAttribute</Polyfill>
<Polyfill>$(Polyfill)|T:System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute</Polyfill>
<Polyfill>$(Polyfill)|T:System.Runtime.CompilerServices.IsExternalInit</Polyfill>
<Polyfill>$(Polyfill)|T:System.Runtime.CompilerServices.RequiredMemberAttribute</Polyfill>
<Polyfill>$(Polyfill)|T:System.Runtime.CompilerServices.SkipLocalsInitAttribute</Polyfill>
<Polyfill>$(Polyfill)|T:System.Threading.Lock</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentException.ThrowIfNullOrEmpty(System.String,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentException.ThrowIfNullOrWhiteSpace(System.String,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentNullException.ThrowIfNull(System.Object,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfEqual``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfGreaterThan``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfLessThan``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfLessThanOrEqual``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfNegative``1(``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfNegativeOrZero``1(``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfNotEqual``1(``0,``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ArgumentOutOfRangeException.ThrowIfZero``1(``0,System.String)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd``1(`0,System.Func{`0,``0,`1},``0)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Collections.Generic.Dictionary`2.Remove(`0,`1@)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Collections.Generic.Dictionary`2.TryAdd(`0,`1)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Enum.GetNames``</Polyfill>
<Polyfill>$(Polyfill)|M:System.Enum.GetValues``1</Polyfill>
<Polyfill>$(Polyfill)|M:System.Enum.IsDefined``1(``0)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Enum.Parse``1(System.String,System.Boolean)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Enum.Parse``1(System.String</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.FirstAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.FirstOrDefaultAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},``0,System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.FirstOrDefaultAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.SingleAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.SingleOrDefaultAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},``0,System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.SingleOrDefaultAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.ToArrayAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Linq.AsyncEnumerable.ToListAsync``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ObjectDisposedException.ThrowIf(System.Boolean,System.Object)</Polyfill>
<Polyfill>$(Polyfill)|M:System.ObjectDisposedException.ThrowIf(System.Boolean,System.Type)</Polyfill>
<Polyfill>$(Polyfill)|M:System.OperatingSystem.IsLinux</Polyfill>
<Polyfill>$(Polyfill)|M:System.OperatingSystem.IsMacOS</Polyfill>
<Polyfill>$(Polyfill)|M:System.OperatingSystem.IsWindows</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.Contains(System.Char)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.Contains(System.Char,System.StringComparison)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.Contains(System.String,System.StringComparison)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.EndsWith(System.Char)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.IndexOf(System.Char,System.StringComparison)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.Replace(System.String,System.String,System.StringComparison)</Polyfill>
<Polyfill>$(Polyfill)|M:System.String.StartsWith(System.Char)</Polyfill>
<Polyfill>$(Polyfill)|M:System.Text.StringBuilder.AppendJoin(System.Char,System.Object[])</Polyfill>
<Polyfill>$(Polyfill)|M:System.Text.StringBuilder.AppendJoin(System.Char,System.String[])</Polyfill>
<Polyfill>$(Polyfill)|M:System.Text.StringBuilder.AppendJoin(System.String,System.Object[])</Polyfill>
<Polyfill>$(Polyfill)|M:System.Text.StringBuilder.AppendJoin(System.String,System.String[])</Polyfill>
<Polyfill>$(Polyfill)|M:System.Type.GetConstructor(System.Reflection.BindingFlags,System.Type[])</Polyfill>
<MeziantouPolyfill_IncludedPolyfills>$(Polyfill)</MeziantouPolyfill_IncludedPolyfills>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AsyncFixer" PrivateAssets="All" />
<PackageReference Include="Lindhart.Analyser.MissingAwaitWarning" PrivateAssets="All" />
<PackageReference Include="Meziantou.Analyzer" PrivateAssets="All" />
<PackageReference Include="Meziantou.Polyfill" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='C#'">
<Compile Include="$(MSBuildThisFileDirectory)/Source/Shared/*.cs" LinkBase="Compatibility" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>net462;netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Testing'">
<TargetFrameworks>net10.0</TargetFrameworks>
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="Properties for templates">
<LinqToDBT4SharedTools>$(MSBuildThisFileDirectory).build\bin\NuGet\Debug\net462\</LinqToDBT4SharedTools>
<LinqToDBT4DatabasesPath>$(LinqToDBT4SharedTools)Database\</LinqToDBT4DatabasesPath>
<LinqToDBT4TemplatesPath>$(MSBuildThisFileDirectory)Source\LinqToDB.Templates\</LinqToDBT4TemplatesPath>
<LinqToDBT4AccessClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4AccessClientPath>
<LinqToDBT4ClickHouseClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4ClickHouseClientPath>
<LinqToDBT4DB2ClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4DB2ClientPath>
<LinqToDBT4FirebirdClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4FirebirdClientPath>
<LinqToDBT4InformixClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4InformixClientPath>
<LinqToDBT4MySqlClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4MySqlClientPath>
<LinqToDBT4OracleClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4OracleClientPath>
<LinqToDBT4PostgreSQLClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4PostgreSQLClientPath>
<LinqToDBT4SapHanaClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4SapHanaClientPath>
<LinqToDBT4SqlCeClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4SqlCeClientPath>
<LinqToDBT4SQLiteClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4SQLiteClientPath>
<LinqToDBT4SqlServerClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4SqlServerClientPath>
<LinqToDBT4SybaseClientPath>$(LinqToDBT4SharedTools)</LinqToDBT4SybaseClientPath>
<LinqToDBT4AccessTemplatesPath>$(MSBuildThisFileDirectory)Nuget\Access\</LinqToDBT4AccessTemplatesPath>
<LinqToDBT4ClickHouseTemplatesPath>$(MSBuildThisFileDirectory)Nuget\ClickHouse\</LinqToDBT4ClickHouseTemplatesPath>
<LinqToDBT4DB2TemplatesPath>$(MSBuildThisFileDirectory)Nuget\DB2\</LinqToDBT4DB2TemplatesPath>
<LinqToDBT4FirebirdTemplatesPath>$(MSBuildThisFileDirectory)Nuget\Firebird\</LinqToDBT4FirebirdTemplatesPath>
<LinqToDBT4InformixTemplatesPath>$(MSBuildThisFileDirectory)Nuget\Informix\</LinqToDBT4InformixTemplatesPath>
<LinqToDBT4MySqlTemplatesPath>$(MSBuildThisFileDirectory)Nuget\MySql\</LinqToDBT4MySqlTemplatesPath>
<LinqToDBT4OracleTemplatesPath>$(MSBuildThisFileDirectory)Nuget\Oracle\</LinqToDBT4OracleTemplatesPath>
<LinqToDBT4PostgreSQLTemplatesPath>$(MSBuildThisFileDirectory)Nuget\PostgreSQL\</LinqToDBT4PostgreSQLTemplatesPath>
<LinqToDBT4SapHanaTemplatesPath>$(MSBuildThisFileDirectory)Nuget\SapHana\</LinqToDBT4SapHanaTemplatesPath>
<LinqToDBT4SqlCeTemplatesPath>$(MSBuildThisFileDirectory)Nuget\SqlCe\</LinqToDBT4SqlCeTemplatesPath>
<LinqToDBT4SQLiteTemplatesPath>$(MSBuildThisFileDirectory)Nuget\SQLite\</LinqToDBT4SQLiteTemplatesPath>
<LinqToDBT4SqlServerTemplatesPath>$(MSBuildThisFileDirectory)Nuget\SqlServer\</LinqToDBT4SqlServerTemplatesPath>
<LinqToDBT4SybaseTemplatesPath>$(MSBuildThisFileDirectory)Nuget\Sybase\</LinqToDBT4SybaseTemplatesPath>
</PropertyGroup>
</Project>