Directory.Build.props 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <!-- https://blog.johnnyreilly.com/2021/07/14/directory-build-props-c-sharp-9-for-all -->
  4. <!-- Legal =================================================================================== -->
  5. <PropertyGroup>
  6. <Authors>Vicente Penades</Authors>
  7. <Company>Vicente Penades</Company>
  8. <Copyright>Copyright (c) 2022 Vicente Penades</Copyright>
  9. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  10. </PropertyGroup>
  11. <!-- Configuration =================================================================================== -->
  12. <PropertyGroup>
  13. <LangVersion>8.0</LangVersion>
  14. <IsPackable>false</IsPackable>
  15. </PropertyGroup>
  16. <PropertyGroup>
  17. <PublishReadyToRun>false</PublishReadyToRun>
  18. <TieredCompilation>false</TieredCompilation>
  19. <EnableTrimAnalyzer>true</EnableTrimAnalyzer>
  20. </PropertyGroup>
  21. <!-- Analysers =================================================================================== -->
  22. <PropertyGroup>
  23. <NoWarn>1701;1702;1591;CA1062;CA1304;CA1310</NoWarn>
  24. </PropertyGroup>
  25. <PropertyGroup>
  26. <!-- Enable all FxCop rules with NetAnalyzers
  27. https://docs.microsoft.com/es-es/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers?view=vs-2022#migration-steps
  28. -->
  29. <AnalysisMode>AllEnabledByDefault</AnalysisMode>
  30. <!-- <CodeAnalysisRuleSet>$(MsBuildThisFileDirectory)..\solution.ruleset</CodeAnalysisRuleSet> -->
  31. </PropertyGroup>
  32. <ItemGroup>
  33. <PackageReference Update="ErrorProne.NET.Structs" Version="0.4.0-beta.1">
  34. <PrivateAssets>all</PrivateAssets>
  35. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  36. </PackageReference>
  37. </ItemGroup>
  38. <!-- Packaging =================================================================================== -->
  39. <PropertyGroup>
  40. <Description>Heterogeneous collection of types for interop between third party graphics libraries</Description>
  41. <RepositoryType>git</RepositoryType>
  42. <RepositoryUrl>https://github.com/vpenades/MonoScene</RepositoryUrl>
  43. <PackageProjectUrl>https://github.com/vpenades/MonoScene</PackageProjectUrl>
  44. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  45. <PackageTags>glTF support for MonoGame</PackageTags>
  46. </PropertyGroup>
  47. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  48. <VersionPrefix>1.0.0</VersionPrefix>
  49. <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
  50. </PropertyGroup>
  51. <PropertyGroup>
  52. <Deterministic>false</Deterministic>
  53. <ContinuousIntegrationBuild>false</ContinuousIntegrationBuild>
  54. </PropertyGroup>
  55. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  56. <DebugSymbols>true</DebugSymbols>
  57. <IncludeSymbols>true</IncludeSymbols>
  58. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  59. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  60. <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
  61. </PropertyGroup>
  62. <!-- Source Control =================================================================================== -->
  63. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  64. <!-- https://github.com/dotnet/sourcelink/blob/main/docs/README.md -->
  65. <EmbedAllSources>true</EmbedAllSources>
  66. <!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
  67. <!--<EmbedUntrackedSources>true</EmbedUntrackedSources>-->
  68. </PropertyGroup>
  69. </Project>