Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Rajasekaran <karajas@microsoft.com>2016-09-17 02:13:51 +0300
committerKarthik Rajasekaran <karajas@microsoft.com>2016-10-18 21:39:53 +0300
commit654f5548f946659c694d110a4bbce8aa33f1a7a1 (patch)
treec5f706b77c05f5adbfd04947cef31b09a1bff604 /dir.targets
parent51663dadffc89d147d10e2f25eff210e6732a138 (diff)
Combine test dependencies into a common project.json.
Restore this common project.json upfront to improve sync time and avoid download contention from nuget.
Diffstat (limited to 'dir.targets')
-rw-r--r--dir.targets14
1 files changed, 13 insertions, 1 deletions
diff --git a/dir.targets b/dir.targets
index e51ab5fa25..574a403156 100644
--- a/dir.targets
+++ b/dir.targets
@@ -12,7 +12,7 @@
<Target Name="BuildAndTest" DependsOnTargets="Build;Test" />
<Target Name="RebuildAndTest" DependsOnTargets="Rebuild;Test" />
<Target Name="Test" />
-
+
<!-- Targets will be overridden if buildagainstpackages.targets is imported. -->
<Target Name="GenerateTestProjectJson" />
<Target Name="GenerateAllTestProjectJsons" />
@@ -57,6 +57,18 @@
<DestinationDir>test-runtime/</DestinationDir>
</SupplementalTestData>
</ItemGroup>
+
+ <PropertyGroup>
+ <CommonTestProjectJson>$(MSBuildThisFileDirectory)src/Common/test-runtime/project.json</CommonTestProjectJson>
+ <CommonTestProjectLockJson>$(MSBuildThisFileDirectory)src/Common/test-runtime/project.lock.json</CommonTestProjectLockJson>
+ <CommonOutputTestProjectJson>$(GeneratedProjectJsonDir)/project.json</CommonOutputTestProjectJson>
+ <UsesCommonTestProjectJson Condition="'$(IsTestProject)' == 'true' and '$(ProjectJson)'=='' ">true</UsesCommonTestProjectJson>
+ <ProjectJson Condition="'$(IsTestProject)' == 'true' and '$(ProjectJson)'=='' ">$(CommonTestProjectJson)</ProjectJson>
+ <ProjectLockJson Condition="'$(IsTestProject)' == 'true' and '$(ProjectLockJson)'=='' ">$(CommonTestProjectLockJson)</ProjectLockJson>
+ <!-- Duplicating this path from packageresolve.targets in buildtools till a proper hook is established for the derived properties below -->
+ <RestorePackages Condition="'$(RestorePackages)'!='false' and Exists('$(ProjectJson)') and '$(DesignTimeBuild)' != 'true'">true</RestorePackages>
+ <PrereleaseResolveNuGetPackages Condition="'$(PrereleaseResolveNuGetPackages)'!='false' and Exists('$(ProjectJson)')">true</PrereleaseResolveNuGetPackages>
+ </PropertyGroup>
<ItemGroup Condition="'$(NuGetTargetMoniker)'=='.NETStandard,Version=v1.7'">
<!-- Temporarily suppress the message until we get a nuget version that knows about the mapping between netstandard1.7 and uap10.1 -->