File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
src/SourceBuild/content/eng Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 114
114
Outputs =" $(BaseIntermediateOutputPath)ReportPoisonUsage.complete" >
115
115
<ItemGroup >
116
116
<!-- Exclude the Private.SourceBuilt.Artifacts archive from poison usage scan. -->
117
- <PoisonFileToCheck Include =" $(ArtifactsAssetsDir)*$(ArchiveExtension)" />
118
- <PoisonFileToCheck Remove =" $(ArtifactsAssetsDir)$(SourceBuiltArtifactsTarballName)*" />
117
+ <AssetToCheck Include =" $(ArtifactsAssetsDir)*$(ArchiveExtension)" />
118
+ <AssetToCheck Remove =" $(ArtifactsAssetsDir)$(SourceBuiltArtifactsTarballName)*" />
119
119
<!-- Include shipping nuget packages. -->
120
- <PoisonFileToCheck Include =" $(ArtifactsShippingPackagesDir)*.nupkg" />
120
+ <ShippingPackageToCheck Include =" $(ArtifactsShippingPackagesDir)**/ *.nupkg" />
121
121
<!-- Add and mark SBRP packages to validate that they have the correct poison attribute. -->
122
- <PoisonFileToCheck Include =" $(ReferencePackagesDir)**\*.nupkg" IsSourceBuildReferencePackage =" true" />
122
+ <SbrpPackageToCheck Include =" $(ReferencePackagesDir)**\*.nupkg" IsSourceBuildReferencePackage =" true" />
123
+ </ItemGroup >
124
+
125
+ <Error Condition =" '@(AssetToCheck)' == ''" Text =" No assets will be poison checked - this is unexpected!" />
126
+ <Error Condition =" '@(ShippingPackageToCheck)' == ''" Text =" No shipping packages will be poison checked - this is unexpected!" />
127
+ <Error Condition =" '@(SbrpPackageToCheck)' == ''" Text =" No SBRP packages will be poison checked - this is unexpected!" />
128
+
129
+ <ItemGroup >
130
+ <PoisonFileToCheck Include =" @(AssetToCheck)" />
131
+ <PoisonFileToCheck Include =" @(ShippingPackageToCheck)" />
132
+ <PoisonFileToCheck Include =" @(SbrpPackageToCheck)" />
123
133
</ItemGroup >
124
134
125
135
<Message Importance =" High" Text =" [$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Checking @(PoisonFileToCheck) for poisoned files." />
You can’t perform that action at this time.
0 commit comments