Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9b49df4

Browse files
committed
Clean packages on official and CI builds
This is needed because we'll be producing packages with constant stable version and content updates.
1 parent 13ca963 commit 9b49df4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/build.proj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<Import Project="dir.targets" />
1010

1111
<Import Project="dir.traversal.targets" />
12-
12+
13+
<Import Project="$(ToolsDir)clean.targets" />
14+
1315
<PropertyGroup>
1416
<TraversalBuildDependsOn>
1517
ValidateAllProjectDependencies;
@@ -18,7 +20,15 @@
1820
</TraversalBuildDependsOn>
1921
</PropertyGroup>
2022

21-
<Target Name="BatchRestorePackages">
23+
<!-- by default in the release branch we will re-download packages every time -->
24+
<PropertyGroup Condition="'$(SkipCleanPackages)' != 'true'">
25+
<BatchRestorePackagesDepensOn>
26+
CleanPackages;
27+
CleanPackagesCache;
28+
$(BatchRestorePackagesDepensOn);
29+
</BatchRestorePackagesDepensOn>
30+
</PropertyGroup>
31+
<Target Name="BatchRestorePackages" DependsOnTargets="$(BatchRestorePackagesDepensOn)">
2232
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
2333

2434
<!-- restore all project.jsons in one pass for perf & to avoid concurrency problems -->

0 commit comments

Comments
 (0)