Condition copy inner built restore package on source-build (#19072)

This commit is contained in:
Viktor Hofer 2024-03-15 22:25:32 +01:00 committed by GitHub
parent 8745d0f816
commit e38441beb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -496,7 +496,7 @@
<!-- Copy restored packages from inner build to ensure they're included in the
main build prebuilt check -->
<Target Name="CopyInnerBuildRestoredPackages"
Condition="'$(IsUtilityProject)' != 'true'">
Condition="'$(IsUtilityProject)' != 'true' and '$(DotNetBuildSourceOnly)' == 'true'">
<ItemGroup>
<_InnerPackageCacheFiles Include="$(ProjectDirectory)artifacts/sb/package-cache/**/*" />
</ItemGroup>