Directory.Build.props 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <Import Project="$(MsBuildThisFileDirectory)..\src\Shared\SharpGLTF.PublicKey.props"/>
  15. <!-- Testing & Analysers =================================================================================== -->
  16. <PropertyGroup>
  17. <NoWarn>1701;1702;1591;CA1062;CA1303;CA1304;CA1307;CA1310;CA1000;CA5394;CA1510;CA1512;CA1852;CA1861</NoWarn>
  18. </PropertyGroup>
  19. <PropertyGroup>
  20. <!-- Enable all FxCop rules with NetAnalyzers
  21. https://docs.microsoft.com/es-es/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers?view=vs-2022#migration-steps
  22. -->
  23. <AnalysisMode>AllEnabledByDefault</AnalysisMode>
  24. <!-- <CodeAnalysisRuleSet>$(MsBuildThisFileDirectory)..\solution.ruleset</CodeAnalysisRuleSet> -->
  25. </PropertyGroup>
  26. <ItemGroup>
  27. <AdditionalFiles Include="$(MsBuildThisFileDirectory)..\stylecop.json" />
  28. <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
  29. <PrivateAssets>all</PrivateAssets>
  30. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  31. </PackageReference>
  32. <PackageReference Include="NUnit.Analyzers" Version="4.2.0">
  33. <PrivateAssets>all</PrivateAssets>
  34. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  35. </PackageReference>
  36. </ItemGroup>
  37. </Project>