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:
authorDavis Goodin <dagood@microsoft.com>2016-04-21 01:47:08 +0300
committerDavis Goodin <dagood@microsoft.com>2016-04-25 19:42:47 +0300
commit11cafd348f9e0606e55ac5210de0d8847926dbfe (patch)
tree25ecba389b7f30f758ada0dfc189be6f7edcedfa /build.proj
parentd332a37260290e2ebbc3d656b7f9fb7967fcbf64 (diff)
Validate that the results of a restore are exactly what was requested.
Also update buildtools to fix UpdatePackageDependencyVersion and fix dependencies on packages that had a minor version bump.
Diffstat (limited to 'build.proj')
-rw-r--r--build.proj9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.proj b/build.proj
index efc3127df5..b3da61fe00 100644
--- a/build.proj
+++ b/build.proj
@@ -59,6 +59,7 @@
<TraversalBuildDependsOn>
ValidateAllProjectDependencies;
BatchRestorePackages;
+ ValidateExactRestore;
CreateOrUpdateCurrentVersionFile;
$(TraversalBuildDependsOn);
</TraversalBuildDependsOn>
@@ -116,6 +117,14 @@
UpdateInvalidDependencies="true" />
</Target>
+ <!-- Task from buildtools that uses lockfiles to validate that packages restored are exactly what were specified. -->
+ <UsingTask TaskName="ValidateExactRestore" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
+
+ <Target Name="ValidateExactRestore"
+ Condition="'$(AllowInexactRestore)'!='true'">
+ <ValidateExactRestore ProjectLockJsons="@(ProjectJsonFiles->'%(RootDir)%(Directory)%(Filename).lock.json')" />
+ </Target>
+
<!-- Tasks from buildtools for easy project.json dependency updates -->
<UsingTask TaskName="UpdatePackageDependencyVersion" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />