Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
Created March 16, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PadreSVK/034e730b90be1eb76ed75d1d68aa5f8c to your computer and use it in GitHub Desktop.
Save PadreSVK/034e730b90be1eb76ed75d1d68aa5f8c to your computer and use it in GitHub Desktop.
Directory.Build.props
<Project>
<PropertyGroup>
<LangVersion>preview</LangVersion> <!--Set C# version for every projects-->
<Nullable>enable</Nullable> <!--Enable nullable for projects-->
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Solution.ruleset</CodeAnalysisRuleSet> <!--Path to Solution.ruleset config for analyzers-->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.5.132" /> <!--some analyzer from nuget https://www.nuget.org/packages/Microsoft.VisualStudio.Threading.Analyzers/ -->
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment