summaryrefslogtreecommitdiff
path: root/Documentation/building/testing-with-corefx.md
blob: c1894a25f7e0843f73ec8a88442f4999782e05b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Testing with CoreFX
===================

It may be valuable to use CoreFX tests to validate your changes to CoreCLR or mscorlib.

In order to do this you need to create a file called `localpublish.props` under the `<repo root>\packages` folder.
The contents of the file should look like this (make sure to update the version to the current version of the CoreCLR package used by CoreFx):

  <Project ToolsVersion="12.0" DefaultTargets="Build" 
         xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <ItemGroup>
      <LocalPackages Include="$(PackagesBinDir)">
          <PackageName>Microsoft.DotNet.CoreCLR</PackageName>
          <PackageVersion>1.0.2-prerelease</PackageVersion>
          <InstallLocation><corefx repo root>\packages</InstallLocation>
        </LocalPackages>
      </ItemGroup>
    </Project>

Once this file is there, subsequent builds of the CoreCLR repo will install the CoreCLR package into the location specified by `InstallLocation`.

To run tests, follow the procedure for running tests in CoreFX.