-
Notifications
You must be signed in to change notification settings - Fork 6
Building Testing and Debugging
This page contains instructions for building Roslyn on Windows. For special instructions on building Roslyn on Linux see here.
Please see the known contributor issues that you might encounter contributing to Roslyn. If you issue isn't listed, please file it.
- Visual Studio 2015 with the Visual Studio Extensibility and Windows 10 tools optional components installed
- To prevent unnecessary project.json changes and slow builds, turn off NuGet package restore within Visual Studio
- Uncheck Tools -> Options -> NuGet Package Manager -> General -> Automatically check for missing packages during build in Visual Studio
- Open Developer Command Prompt for VS2015
- Clone https://github.com/dotnet/roslyn
- Run:
nuget.exe restore Roslyn.sln
- Open Roslyn.sln
To run the unit tests:
msbuild /v:m /m BuildAndTest.proj /p:PublicBuild=true /p:DeployExtension=false
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 NuGet package. Make sure to use a 2.0 version of the runner.
xunit.console.x86.exe [UnitTestDll] -noshadow
Please see Contributing Code for details on contributing changes back to the code.
There is not a supported way to deploy and test any changes you have made within Visual Studio itself. We're currently working on adding support for this and it will be coming soon.
#Contributors Building, Testing, and Debugging
#Tool Authors Getting Started
#Status Language feature status
Edit-and-Continue Supported Edits
#Interactive Docs Interactive Window Documentation