Directory.Build.props 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <Project>
  2. <Import Project="$(MSBuildThisFileFullPath).user" Condition="Exists('$(MSBuildThisFileFullPath).user')" />
  3. <!--
  4. Assembly Info properties that apply to all projects/assemblies.
  5. -->
  6. <PropertyGroup>
  7. <SignAssembly>true</SignAssembly>
  8. <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Renci.SshNet.snk</AssemblyOriginatorKeyFile>
  9. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  10. <LangVersion>latest</LangVersion>
  11. <WarningLevel>9999</WarningLevel>
  12. <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  13. </PropertyGroup>
  14. <!--
  15. Code analysis properties.
  16. -->
  17. <PropertyGroup>
  18. <EnableNETAnalyzers>true</EnableNETAnalyzers>
  19. <AnalysisLevel>preview-All</AnalysisLevel>
  20. <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
  21. </PropertyGroup>
  22. <!--
  23. Add the stylecop config to each project.
  24. -->
  25. <ItemGroup>
  26. <AdditionalFiles Include="..\..\stylecop.json" Link="stylecop.json" Visible="false" />
  27. </ItemGroup>
  28. <!--
  29. Use fixed version of analyzers.
  30. -->
  31. <ItemGroup>
  32. <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
  33. <PackageReference Include="Meziantou.Analyzer" Version="2.0.103" PrivateAssets="all" />
  34. <PackageReference Include="SonarAnalyzer.CSharp" Version="9.16.0.82469" PrivateAssets="all" />
  35. </ItemGroup>
  36. </Project>