Skip to content

Commit 56be416

Browse files
committed
Disable package validation for traversal and nobuild projs
1 parent e980b37 commit 56be416

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Directory.Build.targets

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@
157157
</PropertyGroup>
158158

159159
<!-- Properties for Package Validation -->
160-
<PropertyGroup Condition="'$(ExcludeFromSourceOnlyBuild)' != 'true'">
160+
<PropertyGroup Condition="'$(ExcludeFromSourceOnlyBuild)' != 'true' and
161+
'$(UsingMicrosoftTraversalSdk)' != 'true' and
162+
'$(UsingMicrosoftNoTargetsSdk)' != 'true'">
161163
<EnablePackageValidation Condition="'$(EnablePackageValidation)' == ''">true</EnablePackageValidation>
162164
<DisablePackageBaselineValidation Condition="'$(IsServicingBuild)' != 'true'">true</DisablePackageBaselineValidation>
163165
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>

0 commit comments

Comments
 (0)