Directory.Build.props 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <!-- Legal =================================================================================== -->
  4. <PropertyGroup>
  5. <Authors>Vicente Penades</Authors>
  6. <Copyright>Copyright (c) $([System.DateTime]::Now.ToString(`yyyy`)) Vicente Penades</Copyright>
  7. <Description>SharpGLTF is a C# library for reading and writing glTF2 3D models</Description>
  8. </PropertyGroup>
  9. <!-- Configuration =================================================================================== -->
  10. <PropertyGroup>
  11. <LangVersion>8.0</LangVersion>
  12. <IsPackable>false</IsPackable>
  13. </PropertyGroup>
  14. <!-- Testing & Analysers =================================================================================== -->
  15. <PropertyGroup>
  16. <NoWarn>1701;1702;1591;CA1062;CA1303;CA1304;CA1307;CA1310;CA1000;CA5394;CA1510;CA1512;CA1852;CA1861</NoWarn>
  17. </PropertyGroup>
  18. <PropertyGroup>
  19. <!-- Enable all FxCop rules with NetAnalyzers
  20. https://docs.microsoft.com/es-es/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers?view=vs-2022#migration-steps
  21. -->
  22. <AnalysisMode>AllEnabledByDefault</AnalysisMode>
  23. <!-- <CodeAnalysisRuleSet>$(MsBuildThisFileDirectory)..\solution.ruleset</CodeAnalysisRuleSet> -->
  24. </PropertyGroup>
  25. <ItemGroup>
  26. <AdditionalFiles Include="$(MsBuildThisFileDirectory)..\stylecop.json" />
  27. <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
  28. <PrivateAssets>all</PrivateAssets>
  29. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  30. </PackageReference>
  31. <PackageReference Include="NUnit.Analyzers" Version="3.10.0">
  32. <PrivateAssets>all</PrivateAssets>
  33. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  34. </PackageReference>
  35. </ItemGroup>
  36. </Project>