This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed
System.Diagnostics.Tools/tests Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<Import Project =" dir.traversal.targets" />
12
12
13
+ <PropertyGroup >
14
+ <TraversalBuildDependsOn >
15
+ BatchRestorePackages;
16
+ $(TraversalBuildDependsOn);
17
+ </TraversalBuildDependsOn >
18
+ </PropertyGroup >
19
+
20
+ <Target Name =" BatchRestorePackages" >
21
+ <Message Importance =" High" Text =" Restoring all packages..." />
22
+ <!-- restore all project.jsons in one pass for perf & to avoid concurrency problems with dnu -->
23
+ <!-- include ToolsDir to restore test-runtime\project.json as well -->
24
+ <Exec Command =" $(DnuRestoreCommand) " $(MSBuildProjectDirectory)\src" " $(ToolsDir)" " StandardOutputImportance =" Low" CustomErrorRegularExpression =" ^Unable to locate .*" />
25
+
26
+ <ItemGroup >
27
+ <_allPackagesConfigs Include =" $(MSBuildProjectDirectory)\src\**\packages.config" />
28
+ </ItemGroup >
29
+ <Exec Condition =" '@(_allPackagesConfigs)' != ''" Command =" $(NugetRestoreCommand) " %(_allPackagesConfigs.FullPath)" " StandardOutputImportance =" Low" />
30
+ </Target >
31
+
32
+ <!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
33
+ <Target Name =" RestorePackages" DependsOnTargets =" BatchRestorePackages" />
34
+
13
35
<!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
14
36
<Target Name =" Clean" >
15
37
<RemoveDir Directories =" $(BinDir)" />
Original file line number Diff line number Diff line change 62
62
63
63
<DnuRestoreCommand >"$(DnuToolPath)"</DnuRestoreCommand >
64
64
<DnuRestoreCommand >$(DnuRestoreCommand) restore</DnuRestoreCommand >
65
+ <DnuRestoreCommand >$(DnuRestoreCommand) --parallel</DnuRestoreCommand >
65
66
<DnuRestoreCommand >$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/'))"</DnuRestoreCommand >
66
67
<DnuRestoreCommand Condition =" '$(LockDependencies)' == 'true'" >$(DnuRestoreCommand) --lock</DnuRestoreCommand >
67
68
</PropertyGroup >
68
69
70
+ <PropertyGroup Condition =" '$(BuildAllProjects)'=='true'" >
71
+ <!-- When we do a traversal build we get all packages up front, don't restore them again -->
72
+ <RestorePackages >false</RestorePackages >
73
+ </PropertyGroup >
74
+
69
75
<!--
70
76
Set up Roslyn predefines
71
77
-->
Original file line number Diff line number Diff line change 1
1
{
2
- "locked" : false ,
2
+ "locked" : true ,
3
3
"version" : -9996 ,
4
4
"targets" : {
5
5
"DNXCore,Version=v5.0" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "locked" : false ,
2
+ "locked" : true ,
3
3
"version" : -9996 ,
4
4
"targets" : {
5
5
"DNXCore,Version=v5.0" : {
You can’t perform that action at this time.
0 commit comments