Build sdkArchiveDiff only when we'll run it (#18930)

This commit is contained in:
Jackson Schuster 2024-03-09 01:14:38 -08:00 committed by GitHub
parent d758117295
commit 1dce1914fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,7 @@
</Target>
<Target Name="BuildSdkArchiveDiff"
Condition="'$(ShortStack)' != 'true' and '$(PortableBuild)' == 'true'" >
Condition="'$(ShortStack)' != 'true' and '$(PortableBuild)' == 'true' and '$(PgoInstrument)' != 'true'" >
<MSBuild Projects="tasks\Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff\Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff.csproj"
Targets="Restore"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid())" />