Infra changes to unify the tests to be built against a common project.json.
authorRama Krishnan Raghupathy <ramarag@microsoft.com>
Wed, 24 Aug 2016 01:31:26 +0000 (18:31 -0700)
committerRama Krishnan Raghupathy <ramarag@microsoft.com>
Wed, 24 Aug 2016 01:31:26 +0000 (18:31 -0700)
   1. tests\src\Common\test_dependencies\project.json - To consume corefx and other nuget feeds

   2. tests\src\Common\empty\project.json - To build against the mscorlib facade,to use this just Add
            <ReferenceLocalMscorlib>true</ReferenceLocalMscorlib> to your project

17 files changed:
Documentation/building/windows-test-instructions.md
tests/publishdependency.targets
tests/runtest.proj
tests/src/Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj
tests/src/Common/CoreCLRTestLibrary/project.json [deleted file]
tests/src/Common/Coreclr.TestWrapper/project.json [deleted file]
tests/src/Common/Desktop.Coreclr.TestWrapper/Desktop.Coreclr.TestWrapper.csproj
tests/src/Common/empty/project.json [new file with mode: 0644]
tests/src/Common/test_dependencies/project.json [moved from tests/src/runtime/project.json with 86% similarity]
tests/src/Common/test_dependencies/test_dependencies.csproj [new file with mode: 0644]
tests/src/Common/test_runtime/project.json
tests/src/Common/test_runtime/test_runtime.csproj
tests/src/baseservices/varargs/varargsupport_r.ilproj
tests/src/dir.props
tests/src/dir.targets
tests/src/dirs.proj
tests/src/performance/perflab/project.json [deleted file]

index 74ec258..8e8949e 100644 (file)
@@ -74,9 +74,6 @@ If you wish to run the test under a debugger (e.g. [WinDbg](http://msdn.microsof
 
      <repo_root>\binaries\tests\x64\debug\Exceptions\Finalization\Finalizer.cmd -debug <debuggerFullPath>
     
-Note:
-1. The Managed libraries in the above CORE_ROOT is populated from the [project.json](https://github.com/dotnet/coreclr/blob/master/tests/src/runtime/project.json), this is distinct from what was used to build the test.
-
 **Modifying a test**
 
 If test changes are needed, make the change and build the test project. This will binplace the binaries in test binaries folder (e.g. `<repo_root>\binaries\tests\x64\debug\Exceptions\Finalization`). At this point, follow the steps to re-run a failed test to re-run the modified test.
@@ -90,7 +87,6 @@ If test changes are needed, make the change and build the test project. This wil
 4. Add the project of the new test to `<repo_root>\tests\src\AllTestProjects.sln` in VS
 5. Add source files to this newly added project.
 6. Indicate the success of the test by returning `100`.
-7. Add the .NET CoreFX contract references, as required, via the Nuget Package Manager in Visual Studio. *Make sure this does not change the csproj. If it does, then undo the change in the csproj.*
 8. Add any other projects as a dependency, if needed.
 9. Build the test.
 10. Follow the steps to re-run a failed test to validate the new test.
@@ -104,3 +100,7 @@ Note:
      ``<DisableProjectBuild Condition=" '$(Platform)' == 'arm64' ">true</DisableProjectBuild>``
 
   ``</PropertyGroup>``
+
+2. To Add Nuget\MyGet Refernces use this (project.json)[https://github.com/dotnet/coreclr/blob/master/tests/src/Common/test_dependencies/project.json]
+
+3. To Build against the mscorlib facade add  ``<ReferenceLocalMscorlib>true</ReferenceLocalMscorlib>`` to your project
index a14eb98..554b1ee 100644 (file)
@@ -9,13 +9,17 @@
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectLockJsonFiles Include="$(SourceDir)\runtime\project.lock.json"/>
+    <ProjectLockJsonFiles Include="$(SourceDir)Common\test_runtime\project.lock.json"/>
+    <ProjectLockJsonFiles Include="$(SourceDir)Common\test_dependencies\project.lock.json"/>
   </ItemGroup>
 
   <Target Name="CopyDependecyToCoreRoot"
     Inputs="@(ProjectLockJsonFiles)"
     Outputs="$(CORE_ROOT)\*.*">
 
+    <MSBuild Projects="$(SourceDir)Common\test_runtime\test_runtime.csproj"/>
+
+    <MSBuild Projects="$(SourceDir)Common\test_dependencies\test_dependencies.csproj"/>
 
     <!-- This will use the overridden PrereleaseResolveNuGetPackageAssets, which outputs copy local items
          for the xunit wrapper projects -->
index b6e714e..c02b8c8 100644 (file)
@@ -89,6 +89,8 @@ $(_XunitEpilog)
     <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
     <CLRTestKind>BuildOnly</CLRTestKind>
     <IsTestProject>true</IsTestProject>
+    <ProjectJson>%24(TestWrappersPackagesConfigFileDirectory)project.json</ProjectJson>
+    <ProjectLockJson>%24(TestWrappersPackagesConfigFileDirectory)project.lock.json</ProjectLockJson>
   </PropertyGroup>
   <!-- Default configurations to help VS understand the configurations -->
   <PropertyGroup Condition=" '%24(Configuration)|%24(Platform)' == 'Debug|AnyCPU' ">
@@ -99,9 +101,6 @@ $(_XunitEpilog)
     <Compile Include="$(XunitWrapper).cs" />
   </ItemGroup>
   <ItemGroup>
-    <None Include="%24(TestWrappersPackagesConfigFileDirectory)project.json" />
-  </ItemGroup>
-  <ItemGroup>
     <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
   </ItemGroup>
    <ItemGroup>
@@ -148,8 +147,7 @@ $(_XunitEpilog)
   </Target>
   
   <Target Name="BuildXunitWrapper">
-    <MSBuild Projects="$(XunitWrapperSrcDir)\$(XunitWrapper).csproj"
-             Properties="RestorePackages=false"/>
+    <MSBuild Projects="$(XunitWrapperSrcDir)\$(XunitWrapper).csproj"/>
   </Target>
 
   <Target Name="CreateXunitFacts">
@@ -352,11 +350,9 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
   </Target>
 
   <!-- All the test projects need to add dependency to currently built runtime as they require that to run. 
-       In addition the version number of built runtime can change so all project.json needs to be dynamically generated. 
-       In order to avoid regenerating project.json for all the tests projects...I added a common project for all the tests.
-       This project is at tests\src\common\test_runtime\test_runtime.csproj. This project is adding common dependencies to
-       all the tests like dependency on Microsoft.netcore.runtime.coreclr ..etc. Project.json for this project is dynamically 
-       generated via task CreateTestRuntimeJsonFile. -->
+       In addition the version number of built runtime can change so all project.json needs to be dynamically generated.
+       Instead the following task creates a project.json with dependencies like  Microsoft.netcore.runtime.coreclr ..etc.
+        -->
   <Target Name="CreateTestRuntimeJsonFile">
     <ItemGroup>
       <CoreclrPackage Include="$(CORE_ROOT)\.nuget\**\Microsoft.NETCore.Runtime.CoreCLR.*.nupkg"/>
@@ -402,7 +398,7 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
              Targets="CreateTestRuntimeJsonFile"/>  
      
     <!-- generate project.lock.json file corresponding to above json file -->
-    <MSBuild Projects="src\Common\test_runtime\test_runtime.csproj"/>
+    <MSBuild Projects="src\Common\test_dependencies\test_dependencies.csproj"/>
     
     <!-- Package each perf test, upload it and trigger event to execute the tests -->  
     <MSBuild Projects="$(MSBuildProjectFile)" Targets="UploadPerfAssemblies" />  
@@ -417,7 +413,7 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
              Condition=" '$(BuildWrappers)'=='true' " />
 
     <!-- generate project.lock.json file corresponding to above json file -->
-    <MSBuild Projects="src\Common\test_runtime\test_runtime.csproj"
+    <MSBuild Projects="src\Common\test_dependencies\test_dependencies.csproj"
              Condition=" '$(BuildWrappers)'=='true' " />
 
     <!-- Default for building -->
index f0c88c0..1c1cecc 100644 (file)
     <Compile Include="Utilities.cs" />
   </ItemGroup>
   <ItemGroup>
-    <None Include="project.json" />
-  </ItemGroup>
-  <ItemGroup>
     <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
   </ItemGroup>
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-</Project>
\ No newline at end of file
+</Project>
diff --git a/tests/src/Common/CoreCLRTestLibrary/project.json b/tests/src/Common/CoreCLRTestLibrary/project.json
deleted file mode 100644 (file)
index 3734242..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-{
-  "dependencies": {
-    "Microsoft.NETCore.Platforms": "1.0.2-beta-24328-05",
-    "System.Collections": "4.0.12-beta-24328-05",
-    "System.Collections.NonGeneric": "4.0.2-beta-24328-05",
-    "System.Collections.Specialized": "4.0.2-beta-24328-05",
-    "System.ComponentModel": "4.0.2-beta-24328-05",
-    "System.Console": "4.0.1-beta-24328-05",
-    "System.Diagnostics.Process": "4.1.1-beta-24328-05",
-    "System.Globalization": "4.0.12-beta-24328-05",
-    "System.Globalization.Calendars": "4.0.2-beta-24328-05",
-    "System.IO": "4.1.1-beta-24328-05",
-    "System.IO.FileSystem": "4.0.2-beta-24328-05",
-    "System.IO.FileSystem.Primitives": "4.0.2-beta-24328-05",
-    "System.Linq": "4.1.1-beta-24328-05",
-    "System.Linq.Queryable": "4.0.2-beta-24328-05",
-    "System.Reflection": "4.1.1-beta-24328-05",
-    "System.Reflection.Primitives": "4.0.2-beta-24328-05",
-    "System.Runtime": "4.1.1-beta-24328-05",
-    "System.Runtime.Extensions": "4.1.1-beta-24328-05",
-    "System.Runtime.Handles": "4.0.2-beta-24328-05",
-    "System.Runtime.InteropServices": "4.2.0-beta-24328-05",
-    "System.Runtime.Loader": "4.0.1-beta-24328-05",
-    "System.Text.Encoding": "4.0.12-beta-24328-05",
-    "System.Threading": "4.0.12-beta-24328-05",
-    "System.Threading.Thread": "4.0.1-beta-24328-05",
-    "System.Xml.ReaderWriter": "4.1.0-beta-24328-05",
-    "System.Xml.XDocument": "4.0.12-beta-24328-05",
-    "System.Xml.XmlDocument": "4.0.2-beta-24328-05",
-    "System.Xml.XmlSerializer": "4.0.12-beta-24328-05",
-    "test_runtime": {
-      "target": "project",
-      "exclude": "compile"
-    }
-  },
-  "frameworks": {
-    "netcoreapp1.0": {}
-  },
-  "runtimes": {
-    "win7-x86": {},
-    "win7-x64": {},
-    "ubuntu.14.04-x64": {},
-    "osx.10.10-x64": {},
-    "centos.7-x64": {},
-    "rhel.7-x64": {},
-    "debian.8-x64": {}
-  }
-}
diff --git a/tests/src/Common/Coreclr.TestWrapper/project.json b/tests/src/Common/Coreclr.TestWrapper/project.json
deleted file mode 100644 (file)
index 8168aa2..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-{
-  "dependencies": {
-    "Microsoft.NETCore.Platforms": "1.0.2-beta-24328-05",
-    "System.Collections": "4.0.12-beta-24328-05",
-    "System.Collections.NonGeneric": "4.0.2-beta-24328-05",
-    "System.Collections.Specialized": "4.0.2-beta-24328-05",
-    "System.ComponentModel": "4.0.2-beta-24328-05",
-    "System.Console": "4.0.1-beta-24328-05",
-    "System.Diagnostics.Process": "4.1.1-beta-24328-05",
-    "System.Globalization": "4.0.12-beta-24328-05",
-    "System.Globalization.Calendars": "4.0.2-beta-24328-05",
-    "System.IO": "4.1.1-beta-24328-05",
-    "System.IO.FileSystem": "4.0.2-beta-24328-05",
-    "System.IO.FileSystem.Primitives": "4.0.2-beta-24328-05",
-    "System.Linq": "4.1.1-beta-24328-05",
-    "System.Linq.Queryable": "4.0.2-beta-24328-05",
-    "System.Reflection": "4.1.1-beta-24328-05",
-    "System.Reflection.Primitives": "4.0.2-beta-24328-05",
-    "System.Runtime": "4.1.1-beta-24328-05",
-    "System.Runtime.Extensions": "4.1.1-beta-24328-05",
-    "System.Runtime.Handles": "4.0.2-beta-24328-05",
-    "System.Runtime.InteropServices": "4.2.0-beta-24328-05",
-    "System.Runtime.Loader": "4.0.1-beta-24328-05",
-    "System.Text.Encoding": "4.0.12-beta-24328-05",
-    "System.Threading": "4.0.12-beta-24328-05",
-    "System.Threading.Tasks": "4.0.12-beta-24328-05",
-    "System.Xml.ReaderWriter": "4.1.0-beta-24328-05",
-    "System.Xml.XDocument": "4.0.12-beta-24328-05",
-    "System.Xml.XmlDocument": "4.0.2-beta-24328-05",
-    "System.Xml.XmlSerializer": "4.0.12-beta-24328-05",
-    "test_runtime": {
-      "target": "project",
-      "exclude": "compile"
-    }
-  },
-  "frameworks": {
-    "netcoreapp1.0": {}
-  },
-  "runtimes": {
-    "win7-x86": {},
-    "win7-x64": {},
-    "ubuntu.14.04-x64": {},
-    "osx.10.10-x64": {},
-    "centos.7-x64": {},
-    "rhel.7-x64": {},
-    "debian.8-x64": {}
-  }
-}
index 4d21611..b70f332 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+   <!-- dir.common.props was deliberately created so that Desktop and .Net Core can share most of the properties do not change it to dir.props-->
+  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.common.props))\dir.common.props" />
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -30,6 +31,8 @@
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
+    <ProjectJson></ProjectJson>
+    <ProjectLockJson></ProjectLockJson>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="System" />
diff --git a/tests/src/Common/empty/project.json b/tests/src/Common/empty/project.json
new file mode 100644 (file)
index 0000000..c6d5104
--- /dev/null
@@ -0,0 +1,16 @@
+{
+  "dependencies": {
+  },
+  "frameworks": {
+    "netcoreapp1.0": {}
+  },
+  "runtimes": {
+    "win7-x86": {},
+    "win7-x64": {},
+    "ubuntu.14.04-x64": {},
+    "osx.10.10-x64": {},
+    "centos.7-x64": {},
+    "rhel.7-x64": {},
+    "debian.8-x64": {}
+  }
+}
similarity index 86%
rename from tests/src/runtime/project.json
rename to tests/src/Common/test_dependencies/project.json
index abee464..0bc8803 100644 (file)
@@ -1,11 +1,28 @@
 {
   "dependencies": {
-    "Microsoft.DotNet.CoreCLR.TestDependencies": "1.0.0-prerelease",
+    "xunit": "2.1.0",
+    "xunit.console.netcore": "1.0.2-prerelease-00101",
+    "xunit.runner.utility": "2.1.0",
+    "Microsoft.CodeAnalysis.Compilers": "1.1.1",
+    "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035",
+    "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035",
+    "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035",
+    "Microsoft.Win32.Primitives": "4.0.2-beta-24328-05",
+    "Newtonsoft.Json": "7.0.1",
     "Microsoft.NETCore.Platforms": "1.0.2-beta-24328-05",
+    "Microsoft.NETCore.Targets": "1.0.3-beta-24328-05",
+    "System.Collections.Immutable": "1.2.1-beta-24328-05",
+    "System.Threading.Thread": "4.0.1-beta-24328-05",
     "System.Collections": "4.0.12-beta-24328-05",
+    "System.Xml.XmlSerializer": "4.0.12-beta-24328-05",
     "System.Collections.Concurrent": "4.0.13-beta-24328-05",
+    "System.ObjectModel": "4.0.13-beta-24328-05",
+    "System.Runtime.Numerics": "4.0.2-beta-24328-05",
     "System.Collections.NonGeneric": "4.0.2-beta-24328-05",
     "System.Collections.Specialized": "4.0.2-beta-24328-05",
+    "System.ComponentModel": "4.0.2-beta-24328-05",
+    "System.Reflection.Emit.Lightweight": "4.0.2-beta-24328-05",
+    "System.Reflection.TypeExtensions": "4.1.1-beta-24328-05",
     "System.Console": "4.0.1-beta-24328-05",
     "System.Diagnostics.Contracts": "4.0.2-beta-24328-05",
     "System.Diagnostics.Debug": "4.0.12-beta-24328-05",
     "System.Xml.XPath": "4.0.2-beta-24328-05",
     "System.Xml.XPath.XmlDocument": "4.0.2-beta-24328-05",
     "System.Numerics.Vectors": "4.1.2-beta-24328-05",
-    "Newtonsoft.Json": "7.0.1",
-    "Microsoft.CodeAnalysis.Compilers": "1.1.1",
-    "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035",
-    "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035",
-    "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035",
-    "xunit": "2.1.0",
-    "xunit.console.netcore": "1.0.2-prerelease-00101",
-    "xunit.runner.utility": "2.1.0",
-    "test_runtime": {
-      "target": "project",
-      "exclude": "compile"
-    }
   },
   "frameworks": {
     "netcoreapp1.0": {
diff --git a/tests/src/Common/test_dependencies/test_dependencies.csproj b/tests/src/Common/test_dependencies/test_dependencies.csproj
new file mode 100644 (file)
index 0000000..1676021
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <CLRTestKind>BuildOnly</CLRTestKind>
+  </PropertyGroup>
+  <ItemGroup>
+     <DnuSourceList Include="$(CORE_ROOT)\.nuget\pkg" /> 
+  </ItemGroup>
+  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+  <Target Name="Build"
+     DependsOnTargets="ResolveReferences" /> 
+</Project>
index 976c048..9c6fdf1 100644 (file)
@@ -1,27 +1,22 @@
 {
   "dependencies": {
-    "Microsoft.NETCore.Targets": "1.0.3-beta-24328-05",
-    "System.Collections.Concurrent": "4.0.13-beta-24328-05",
-    "System.Collections.Immutable": "1.2.1-beta-24328-05",
-    "System.Diagnostics.Tracing": "4.1.1-beta-24328-05",
-    "System.IO.FileSystem.Primitives": "4.0.2-beta-24328-05",
-    "System.Linq": "4.1.1-beta-24328-05",
-    "System.Linq.Expressions": "4.1.1-beta-24328-05",
-    "System.ObjectModel": "4.0.13-beta-24328-05",
-    "System.Reflection.Emit.Lightweight": "4.0.2-beta-24328-05",
-    "System.Reflection.TypeExtensions": "4.1.1-beta-24328-05",
-    "System.Runtime.Numerics": "4.0.2-beta-24328-05",
-    "System.Text.RegularExpressions": "4.2.0-beta-24328-05",
-    "System.Threading": "4.0.12-beta-24328-05",
-    "System.Threading.Overlapped": "4.0.2-beta-24328-05",
-    "System.Threading.Thread": "4.0.1-beta-24328-05",
-    "System.Threading.ThreadPool": "4.0.11-beta-24328-05",
-    "System.Xml.ReaderWriter": "4.1.0-beta-24328-05",
-    "System.Xml.XDocument": "4.0.12-beta-24328-05",
-    "System.Xml.XmlDocument": "4.0.2-beta-24328-05",
-    "System.Xml.XmlSerializer": "4.0.12-beta-24328-05"
+    "Microsoft.DotNet.CoreCLR.TestDependencies": "1.0.0-prerelease",
   },
   "frameworks": {
-    "netcoreapp1.0": {}
+    "netcoreapp1.0": {
+      "imports": [
+        "dnxcore50",  
+        "portable-net45+win8"
+      ]
+    }
+  },
+  "runtimes": {
+    "win7-x86": {},
+    "win7-x64": {},
+    "ubuntu.14.04-x64": {},
+    "osx.10.10-x64": {},
+    "centos.7-x64": {},
+    "rhel.7-x64": {},
+    "debian.8-x64": {}
   }
 }
index 0416083..71fefbe 100644 (file)
@@ -5,15 +5,17 @@
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <CLRTestKind>BuildOnly</CLRTestKind>
-    <!-- Skip validation of the test_runtime project created by the test build. -->
-    <ValidatePackageVersions>false</ValidatePackageVersions>
+    <!-- Reset the Default project.json-->
+    <ProjectJson></ProjectJson>
+    <ProjectLockJson></ProjectLockJson>
   </PropertyGroup>
   <ItemGroup>
      <DnuSourceList Include="$(CORE_ROOT)\.nuget\pkg" /> 
   </ItemGroup>
   <ItemGroup>
-    <None Include="$(TestRuntimeProjectJson)" />
+    <None Include="project.json" />
   </ItemGroup>
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-  <Target Name="Build" /> 
+  <Target Name="Build"
+     DependsOnTargets="ResolveReferences" /> 
 </Project>
index fefa179..39e0681 100644 (file)
@@ -25,8 +25,6 @@
       <Visible>False</Visible>
     </CodeAnalysisDependentAssemblyPaths>
   </ItemGroup>
-  <PropertyGroup>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="varargsupport.il" />
   </ItemGroup>
index c47ec0f..3b2754c 100644 (file)
@@ -73,5 +73,9 @@
   <PropertyGroup>
     <ZapRequire Condition="'$(ZapRequire)' == ''">2</ZapRequire>
   </PropertyGroup>
-
+  
+  <PropertyGroup>
+    <ProjectJson>$(SourceDir)Common\test_dependencies\project.json</ProjectJson>
+    <ProjectLockJson>$(SourceDir)Common\test_dependencies\project.lock.json</ProjectLockJson>
+  </PropertyGroup>
 </Project>
index 05ae65a..31d9304 100644 (file)
     <_CLRTestNeedsProjectToRun Condition=" '$(_CLRTestNeedsToRun)' and '!$(_CLRTestBuildsExecutable)' ">true</_CLRTestNeedsProjectToRun>
   </PropertyGroup>
 
+  <PropertyGroup Condition="'$(ReferenceLocalMscorlib)' == 'true'">
+    <ProjectJson>$(SourceDir)Common/empty/project.json</ProjectJson>
+    <ProjectLockJson>$(SourceDir)Common/empty/project.lock.json</ProjectLockJson>
+  </PropertyGroup>
+
   <!--
   If it needs ProjectToRun, turn the project into a ProjectReference so it gets built
   -->
index eb0cd58..99a50a4 100644 (file)
@@ -18,6 +18,7 @@
       <DisabledProjects Include="*\**\cs_template.csproj" />
       <DisabledProjects Include="Common\Coreclr.TestWrapper\Coreclr.TestWrapper.csproj" />
       <DisabledProjects Include="Common\test_runtime\test_runtime.csproj" />
+      <DisabledProjects Include="Common\test_dependencies\test_dependencies.csproj" />
       <DisabledProjects Include="GC\Performance\Framework\GCPerfTestFramework.csproj" />
       <DisabledProjects Include="Loader\classloader\generics\regressions\DD117522\Test.csproj" />
       <DisabledProjects Include="Loader\classloader\generics\GenericMethods\VSW491668.csproj" /> <!-- issue 5501 -->
diff --git a/tests/src/performance/perflab/project.json b/tests/src/performance/perflab/project.json
deleted file mode 100644 (file)
index 53ee516..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-{
-  "dependencies": {
-    "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035",
-    "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035",
-    "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035",
-    "Microsoft.NETCore.Platforms": "1.0.2-beta-24328-05",
-    "System.Console": "4.0.1-beta-24328-05",
-    "System.IO.FileSystem": "4.0.2-beta-24328-05",
-    "System.Reflection": "4.1.1-beta-24328-05",
-    "System.Linq": "4.1.1-beta-24328-05",
-    "System.Linq.Expressions": "4.1.1-beta-24328-05",
-    "System.Text.RegularExpressions": "4.2.0-beta-24328-05",
-    "xunit": "2.1.0",
-    "xunit.console.netcore": "1.0.2-prerelease-00101",
-    "xunit.runner.utility": "2.1.0",
-    "test_runtime": {
-      "target": "project",
-      "exclude": "compile"
-    }
-  },
-  "frameworks": {
-    "netcoreapp1.0": {
-      "imports": [
-        "dnxcore50",
-        "portable-net45+win8"
-      ]
-    }
-  },
-  "runtimes": {
-    "win7-x86": {},
-    "win7-x64": {},
-    "ubuntu.14.04-x64": {},
-    "osx.10.10-x64": {},
-    "centos.7-x64": {},
-    "rhel.7-x64": {},
-    "debian.8-x64": {}
-  }
-}