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

Commit 5604615

Browse files
committed
Merge pull request #2198 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents c034b13 + cd7d6a2 commit 5604615

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Message Importance="High" Text="Restoring all packages..." />
2222
<!-- restore all project.jsons in one pass for perf & to avoid concurrency problems with dnu -->
2323
<!-- include ToolsDir to restore test-runtime\project.json as well -->
24-
<Exec Command="$(DnuRestoreCommand) &quot;$(MSBuildProjectDirectory)\src&quot; &quot;$(ToolsDir)&quot;" StandardOutputImportance="Low" CustomErrorRegularExpression="^Unable to locate .*" />
24+
<Exec Command="$(DnuRestoreCommand) $(DnuRestoreDirs)" StandardOutputImportance="Low" CustomErrorRegularExpression="^Unable to locate .*" />
2525

2626
<ItemGroup>
2727
<_allPackagesConfigs Include="$(MSBuildProjectDirectory)\src\**\packages.config"/>

dir.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,19 @@
6969
<DnuSourceList Include="https:%2F%2Fwww.nuget.org/api/v2/" />
7070
</ItemGroup>
7171

72+
<!-- list of directories to perform batch restore -->
73+
<ItemGroup>
74+
<DnuRestoreDir Include="&quot;$(MSBuildProjectDirectory)\src&quot;" />
75+
<DnuRestoreDir Include="&quot;$(ToolsDir)&quot;" />
76+
</ItemGroup>
77+
7278
<PropertyGroup>
7379
<DnxPackageDir Condition="'$(DnxPackageDir)'==''">$(PackagesDir)/$(DnxPackageName)/</DnxPackageDir>
7480
<DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OsEnvironment)'!='Unix'">$(DnxPackageDir)\bin\dnu.cmd</DnuToolPath>
7581
<DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OsEnvironment)'=='Unix'">$(DnxPackageDir)/bin/dnu</DnuToolPath>
7682

7783
<DnuRestoreSource>@(DnuSourceList -> '--source %(Identity)', ' ')</DnuRestoreSource>
84+
<DnuRestoreDirs>@(DnuRestoreDir -> '%(Identity)', ' ')</DnuRestoreDirs>
7885

7986
<DnuRestoreCommand>"$(DnuToolPath)"</DnuRestoreCommand>
8087
<DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand>

0 commit comments

Comments
 (0)