forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
85 lines (69 loc) · 3.77 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
78
79
80
81
82
83
84
85
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>6.0.0.0</Version>
<EF3Version>3.0.0.0</EF3Version>
<EF6Version>6.0.0.0</EF6Version>
<EF8Version>8.0.0.0</EF8Version>
<Configurations>Debug;Release;Azure</Configurations>
<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-2024 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>
<!--1573: missing xmldoc-->
<!--1591: missing xmldoc-->
<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>
<!--feature flags-->
<DefineConstants Condition=" $(TargetFramework) == 'net8.0' ">SUPPORTS_COMPOSITE_FORMAT;$(DefineConstants)</DefineConstants>
<ArtifactsPath>$(MSBuildThisFileDirectory).build</ArtifactsPath>
<ArtifactsPivots>$(Configuration)\$(TargetFramework)</ArtifactsPivots>
</PropertyGroup>
<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>
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="PolySharp" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" />
<PackageReference Include="Meziantou.Analyzer" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" />
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='C#'">
<Compile Include="$(MSBuildThisFileDirectory)/Source/Shared/*.cs" LinkBase="Compatibility" />
</ItemGroup>
</Project>