Files
Umbraco-CMS/tests/Directory.Build.props
2024-10-28 13:19:46 +01:00

24 lines
1017 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Enable multi-level merging -->
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
<PropertyGroup>
<!-- Disable packaging and validation for test projects to fix benchmarks (that auto-generates boilerplate code) -->
<IsPackable>false</IsPackable>
<BaseEnablePackageValidation>$(EnablePackageValidation)</BaseEnablePackageValidation>
<EnablePackageValidation>false</EnablePackageValidation>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<!-- TODO: Update test projects to use nullable reference types and remove this to enable nullable warnings as errors (the solution default) -->
<Nullable>annotations</Nullable>
</PropertyGroup>
<!-- Specify rule set for all test projects -->
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)codeanalysis.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>