Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.28 KB

validating-changes.md

File metadata and controls

27 lines (20 loc) · 1.28 KB

Validating CoreCLR Changes

We have ported very few of our CoreCLR and mscorlib tests to the repo. When we do, this topic will grow. Until then, the following technique is a good sanity test for your changes.

Validating your changes using 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.