Stop groveling for project.json files when building every test.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 31 Aug 2016 23:51:58 +0000 (16:51 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 31 Aug 2016 23:51:58 +0000 (16:51 -0700)
This information is only needed by build.proj. Do not compute it in dir.props,
which is included by every test project.

tests/build.proj
tests/dir.props

index 6d5e456..0dfd84d 100644 (file)
   <!-- Tasks from buildtools for easy project.json dependency updates -->
   <UsingTask TaskName="UpdatePackageDependencyVersion" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
 
+  <!-- Create a collection of all project.json files for dependency updates. -->
+  <ItemGroup>
+    <ProjectJsonFiles Include="$(SourceDir)**\project.json" />
+  </ItemGroup>
+
   <Target Name="UpdatePackageDependencyVersion">
     <UpdatePackageDependencyVersion ProjectJsons="@(ProjectJsonFiles)"
                                     PackageId="$(PackageId)"
index 8d7c8b8..9d93e93 100644 (file)
     <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/\'.ToCharArray()))" $(DnuRestoreSource)</DnuRestoreCommand>
   </PropertyGroup>
 
-  <!-- Create a collection of all project.json files for dependency updates. -->
-  <ItemGroup>
-    <ProjectJsonFiles Include="$(SourceDir)**\project.json" />
-  </ItemGroup>
-
   <!-- Which tests shall we build? Default: Priority 0 tests.
     At the command-line, the user can specify /p:CLRTestPriorityToBuild=666 (for example), and
     all tests with CLRTestPriority 666,..., 1 AND 0 will build.