<commit_before># Building, Testing, and Debugging

## Required Software

The Roslyn source code targets the latest public build of Visual Studio 2015.  At this time that is CTP6.  In order to edit, build and test the source code both the latest public drop and the SDK will need to be installed:

- [Visual Studio 2015 CTP6](http://go.microsoft.com/?linkid=9875137&clcid=0x409&wt.mc_id=o~msft~vscom~download-body~dn906891&campaign=o~msft~vscom~download-body~dn906891)
- [Visual Studio 2015 SDK](http://go.microsoft.com/?linkid=9875738)

## Getting the code

1. Clone https://github.com/dotnet/roslyn
2. Open RoslynLight.sln 

## Running Unit Tests
To run the unit tests:

> msbuild /v:m /m BuildAndTest.proj /p:PublicBuild=true

This command will build and run all of the code / tests which are supported on the current public build of Visual Studio 2015.  

To debug suites use the *xunit.console.x86.exe* runner command which is included in the [xunit.runners](https://www.nuget.org/packages/xunit.runners) NuGet package.  Make sure to use a 2.0 version of the runner.  

> xunit.console.x86.exe [UnitTestDll] -noshadow 

## Contributing
Please see [[Contributing Code]] for details on contributing changes back to the code.

## Using earlier versions of Visual Studio 2015 

The Roslyn build depends on Visual Studio APIs that change from release to release.  In order to use an older version of Visual Studio to load the source code you will need to use the appropriate branch.

> Use git branch --list from the command line to see the possible branches, E.g:

```
git branch --list --all
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/releases/Dev14CTP5<commit_msg>Update Required Software to specify RC instead of CTP6.<commit_after># Building, Testing, and Debugging

## Required Software

The Roslyn source code targets the latest public build of Visual Studio 2015.  At this time that is RC.  In order to edit, build and test the source code both the latest public drop and the SDK will need to be installed:

- [Visual Studio 2015 RC](https://www.visualstudio.com/products/visual-studio-2015-downloads-vs)
- [Visual Studio 2015 SDK RC](http://go.microsoft.com/?linkid=9877247)

## Getting the code

1. Clone https://github.com/dotnet/roslyn
2. Open RoslynLight.sln 

## Running Unit Tests
To run the unit tests:

> msbuild /v:m /m BuildAndTest.proj /p:PublicBuild=true

This command will build and run all of the code / tests which are supported on the current public build of Visual Studio 2015.  

To debug suites use the *xunit.console.x86.exe* runner command which is included in the [xunit.runners](https://www.nuget.org/packages/xunit.runners) NuGet package.  Make sure to use a 2.0 version of the runner.  

> xunit.console.x86.exe [UnitTestDll] -noshadow 

## Contributing
Please see [[Contributing Code]] for details on contributing changes back to the code.

## Using earlier versions of Visual Studio 2015 

The Roslyn build depends on Visual Studio APIs that change from release to release.  In order to use an older version of Visual Studio to load the source code you will need to use the appropriate branch.

> Use git branch --list from the command line to see the possible branches, E.g:

```
git branch --list --all
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/releases/Dev14CTP5
{'fraction_non_alphanumeric': 0.07922272047832586, 'fraction_numerical': 0.031689088191330345, 'mean_word_length': 4.108396946564885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 5, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4532575', 'n_tokens_mistral': 1072, 'n_tokens_neox': 964, 'n_words': 430}