forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
77 lines (63 loc) · 3.53 KB
/
Directory.Build.props
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>5.0.0.0</Version>
<Description>LINQ to DB is a data access technology that provides a run-time infrastructure for managing relational data as objects.</Description>
<Authors>Igor Tkachev, Ilya Chudin, Svyatoslav Danyliv, Dmitry Lukashenko</Authors>
<Company>linq2db.net</Company>
<Copyright>2002-2023 linq2db.net</Copyright>
<RepositoryUrl>https://github.com/linq2db/linq2db</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<WarningLevel>9999</WarningLevel>
<ErrorReport>prompt</ErrorReport>
<NoWarn>1573;1591</NoWarn>
<Features>strict</Features>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)/Build/linq2db.snk</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!--required for SkipLocalInit-->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
</PropertyGroup>
<PropertyGroup Label="Code Analysis Setup">
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<!--enable on release build only to not slowdown development/testing-->
<RunAnalyzersDuringBuild Condition="$(Configuration) != 'Debug'">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 Condition="'$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0'">
<DefineConstants>NETSTANDARD2_1PLUS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="PolySharp" />
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/Build/BannedSymbols.txt" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='C#'">
<Compile Include="$(MSBuildThisFileDirectory)/Source/Shared/*.cs" LinkBase="Compatibility" />
</ItemGroup>
</Project>