This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 21
21
<Message Importance =" High" Text =" Restoring all packages..." />
22
22
<!-- restore all project.jsons in one pass for perf & to avoid concurrency problems with dnu -->
23
23
<!-- include ToolsDir to restore test-runtime\project.json as well -->
24
- <Exec Command =" $(DnuRestoreCommand) " $(MSBuildProjectDirectory)\src " " $(ToolsDir) " " StandardOutputImportance =" Low" CustomErrorRegularExpression =" ^Unable to locate .*" />
24
+ <Exec Command =" $(DnuRestoreCommand) $(DnuRestoreDirs) " StandardOutputImportance =" Low" CustomErrorRegularExpression =" ^Unable to locate .*" />
25
25
26
26
<ItemGroup >
27
27
<_allPackagesConfigs Include =" $(MSBuildProjectDirectory)\src\**\packages.config" />
Original file line number Diff line number Diff line change 69
69
<DnuSourceList Include =" https:%2F%2Fwww.nuget.org/api/v2/" />
70
70
</ItemGroup >
71
71
72
+ <!-- list of directories to perform batch restore -->
73
+ <ItemGroup >
74
+ <DnuRestoreDir Include =" " $(MSBuildProjectDirectory)\src" " />
75
+ <DnuRestoreDir Include =" " $(ToolsDir)" " />
76
+ </ItemGroup >
77
+
72
78
<PropertyGroup >
73
79
<DnxPackageDir Condition =" '$(DnxPackageDir)'==''" >$(PackagesDir)/$(DnxPackageName)/</DnxPackageDir >
74
80
<DnuToolPath Condition =" '$(DnuToolPath)'=='' and '$(OsEnvironment)'!='Unix'" >$(DnxPackageDir)\bin\dnu.cmd</DnuToolPath >
75
81
<DnuToolPath Condition =" '$(DnuToolPath)'=='' and '$(OsEnvironment)'=='Unix'" >$(DnxPackageDir)/bin/dnu</DnuToolPath >
76
82
77
83
<DnuRestoreSource >@(DnuSourceList -> '--source %(Identity)', ' ')</DnuRestoreSource >
84
+ <DnuRestoreDirs >@(DnuRestoreDir -> '%(Identity)', ' ')</DnuRestoreDirs >
78
85
79
86
<DnuRestoreCommand >"$(DnuToolPath)"</DnuRestoreCommand >
80
87
<DnuRestoreCommand >$(DnuRestoreCommand) restore</DnuRestoreCommand >
You can’t perform that action at this time.
0 commit comments