-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
82 lines (68 loc) · 3.28 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
<Project>
<!-- Project Details -->
<PropertyGroup>
<Company>The Cogworks Limited</Company>
<Authors>Cogworks</Authors>
<Owners>Cogworks</Owners>
<Copyright>Copyright (c) $(Company) $([System.DateTime]::Now.Year)</Copyright>
<PackageProjectUrl>https://github.com/thecogworks/Cogworks.AzureSearch.IoC.Umbraco</PackageProjectUrl>
<RepositoryUrl>https://github.com/thecogworks/Cogworks.AzureSearch.IoC.Umbraco</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<!-- Project Setup -->
<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<NoWarn>1591;1701;1702;8032;NU1701;NU1902;AD0001;CA1041;CS0311;CS5001</NoWarn>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Deterministic>true</Deterministic>
<BuildInParallel>false</BuildInParallel>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<EnablePackageValidation>true</EnablePackageValidation>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'">
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize>true</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' != 'Release'">
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<EnableNETAnalyzers>false</EnableNETAnalyzers>
</PropertyGroup>
<!-- Source Link -->
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<!-- Additional files which are consumed by all projects -->
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)linting\stylecop.json" />
</ItemGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)linting\codeanalysis.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)linting\stylecop.json" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)linting\codeanalysis.ruleset" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)linting\.editorconfig" Visible="false" />
<None Include="$(MSBuildThisFileDirectory).editorconfig" Visible="false" />
</ItemGroup>
</Project>