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.

Commit migrated from https://github.com/dotnet/coreclr/commit/c810a1111db04086e31d981090b8ba647375bf77

src/coreclr/tests/build.proj
src/coreclr/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.