Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project>
<PropertyGroup>
<!-- Enable nullable reference types repo-wide -->
<Nullable>enable</Nullable>

<!-- Explicit using directives (consistent with existing code style) -->
<ImplicitUsings>disable</ImplicitUsings>

<!-- Enforce .editorconfig style rules during build -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>

<!-- Enable built-in .NET analysers at recommended level -->
<AnalysisLevel>latest-recommended</AnalysisLevel>
</PropertyGroup>

<!-- netstandard2.0 defaults to C# 7.3 which does not support nullable reference types.
Raise LangVersion to 8.0 so that <Nullable>enable</Nullable> above is accepted. -->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<LangVersion>8.0</LangVersion>
</PropertyGroup>
</Project>
Loading