Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions eng/testing/linker/trimmingTests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,20 @@
<MSBuild Projects="@(TestConsoleApps)"
BuildInParallel="false"
Targets="Restore"
ContinueOnError="ErrorAndContinue"
Condition="'$(SkipTrimmingProjectsRestore)' != 'true'"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());Configuration=$(Configuration);RestoreDisableParallel=true" />

<!-- Retry restore if the first attempt failed due to a concurrent NuGet file-move race on Windows (https://github.com/dotnet/aspnetcore/issues/61178).
Multiple trimming-test .proj files restore in parallel; their static-graph restores can race when
committing project.assets.json for shared ProjectReference targets. The retry succeeds because the
competing restore has finished by then, and already-restored projects are quick no-ops. -->
<MSBuild Projects="@(TestConsoleApps)"
BuildInParallel="false"
Targets="Restore"
Condition="'$(SkipTrimmingProjectsRestore)' != 'true' and '$(MSBuildLastTaskResult)' != 'true'"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());Configuration=$(Configuration);RestoreDisableParallel=true" />

<MSBuild Projects="@(TestConsoleApps)"
Targets="Publish"
Properties="Configuration=$(Configuration);BuildProjectReferences=false" />
Expand Down
Loading