Skip to content

Commit 4da2717

Browse files
feat(#116): Add Directory.Build.props with shared build settings (#127)
* plan(#116): initial brief from issue * plan(#116): review brief * plan(#116): apply brief review feedback * plan(#116): review brief * plan(#116): create task breakdown * feat(#116): implement tasks * feat(#116): complete implementation
1 parent e93d990 commit 4da2717

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- Enable nullable reference types repo-wide -->
4+
<Nullable>enable</Nullable>
5+
6+
<!-- Explicit using directives (consistent with existing code style) -->
7+
<ImplicitUsings>disable</ImplicitUsings>
8+
9+
<!-- Enforce .editorconfig style rules during build -->
10+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
11+
12+
<!-- Enable built-in .NET analysers at recommended level -->
13+
<AnalysisLevel>latest-recommended</AnalysisLevel>
14+
</PropertyGroup>
15+
16+
<!-- netstandard2.0 defaults to C# 7.3 which does not support nullable reference types.
17+
Raise LangVersion to 8.0 so that <Nullable>enable</Nullable> above is accepted. -->
18+
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
19+
<LangVersion>8.0</LangVersion>
20+
</PropertyGroup>
21+
</Project>

0 commit comments

Comments
 (0)