The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Switch branches/tags
version-2.10.0 version-2.9.0 version-2.8.2 version-2.8.0 version-2.7.0-beta3 version-2.6.0-beta3 version-2.4.0 version-2.3.5 version-2.3.4 version-2.3.2 version-2.3.2-beta1 version-2.3.0-beta3 version-2.3.0-beta2 version-2.3.0-beta1 version-2.2.0 version-2.1.0 version-2.0.0 version-2.0.0-rc4 version-2.0.0-rc3 version-2.0.0-rc2 version-2.0.0-rc version-2.0.0-beta5 version-2.0.0-beta4 version-2.0.0-beta3 version-2.0.0-beta1 version-1.3.2 version-1.3.1 version-1.3.0 version-1.3.0-beta1-20160429-01 version-1.2.2 version-1.2.1 version-1.2.0 version-1.2.0-beta1-20160108-01 version-1.2.0-beta version-1.2.0-beta-20151211-01 version-1.1.1 version-1.1.0 version-1.1.0-rc1-20151109-01 version-1.0.0 version-1.0.0-beta1-20141031-01 toolset_5 toolset_3 toolset_2 toolset_1_1 toolset_1 Visual.Studio.2015.Update.1.RC Visual.Studio.2015.Update.1.CTP Visual-Studio-2017 Visual-Studio-2017-Version-15.9 Visual-Studio-2017-Version-15.8 Visual-Studio-2017-Version-15.7.2 Visual-Studio-2017-Version-15.7 Visual-Studio-2017-Version-15.6 Visual-Studio-2017-Version-15.5 Visual-Studio-2017-Version-15.4 Visual-Studio-2017-Version-15.3.5 Visual-Studio-2017-Version-15.3.4 Visual-Studio-2017-Version-15.3.2 Visual-Studio-2017-Version-15.3 Visual-Studio-2017-Version-15.2 Visual-Studio-2017-Version-15.1 Visual-Studio-2017-RC4 Visual-Studio-2017-RC3 Visual-Studio-2017-RC2 Visual-Studio-2017-RC Visual-Studio-2017-Preview-Version-15.3 Visual-Studio-2017-Preview-6-Version-15.7 Visual-Studio-2017-Preview-3-Version-15.4 Visual-Studio-2017-Preview-3-Version-15.3 Visual-Studio-2017-Preview-2-Version-15.4 Visual-Studio-2017-Preview-2-Version-15.3 Visual-Studio-2017-Preview-1-Version-15.4 Visual-Studio-2015 Visual-Studio-2015-Update-3 Visual-Studio-2015-Update-3-Micro-Update-1 Visual-Studio-2015-Update-2 Visual-Studio-2015-Update-2-RC Visual-Studio-2015-Update-2-Micro-Update-3 Visual-Studio-2015-Update-2-Micro-Update-1 Visual-Studio-2015-Update-1 Visual-Studio-2015-Update-1-RC Visual-Studio-2015-Update-1-CTP Visual-Studio-2015-RC Visual-Studio-2015-Preview Visual-Studio-2015-CTP-6 Visual-Studio-2015-CTP-5 Visual-Studio-15-Preview Visual-Studio-15-Preview-5 Visual-Studio-15-Preview-4 Visual-Studio-15-Preview-3 VS.Toolset.Roslyn.1.1.0-beta1-20150727-01 VS.Tools.X86.Managed.V45.1.0.150513.2 Oss.Scan.2015.03.13 Oss.Scan.2013.03.13 NetFx.Toolset.150729
Nothing to show
Clone or download
jasonmalinowski Merge pull request #31153 from jasonmalinowski/delete-unused-fixed-ve…
…rsions

Delete a bunch of unused versions from FixedPackages.props
Latest commit 5949332 Nov 14, 2018
Permalink
Failed to load latest commit information.
.github Remove PR template Jul 26, 2018
build Delete a bunch of unused versions from FixedPackages.props Nov 13, 2018
docs Merge pull request #31086 from dotnet/merges/dev16.0-preview2-to-master Nov 10, 2018
src Merge pull request #28115 from wachulski/fix/27866/else-without-if-er… Nov 12, 2018
.editorconfig Add csharp_prefer_braces to .editorconfig Nov 7, 2018
.gitattributes NuGet packaging (#29408) Aug 27, 2018
.gitignore Use Arcade bootstrapping scripts (#30498) Oct 30, 2018
.vsts-ci.yml Merge remote-tracking branch 'dotnet/dev16.0.x' into merges/dev16.0.x… Nov 8, 2018
.vsts-dnceng.yml Fix Linux log publish Oct 23, 2018
Build.cmd Switch to Arcade targets for building VSIXes (#29590) Sep 12, 2018
CONTRIBUTING.md Contributing page: reference Unix build instructions Oct 28, 2018
Compilers.sln Fix nesting in compilers.sln Oct 9, 2018
Compilers.slnf Add Compilers filter for Roslyn (#30880) Nov 10, 2018
Directory.Build.props Reorganize the central build logic Dec 6, 2017
Directory.Build.rsp Add empty Directory.Build.rsp files Apr 9, 2018
Directory.Build.targets Reorganize the central build logic Dec 6, 2017
License.txt Include the actual license text. Feb 6, 2015
NuGet.Config Only import package versions in projects that restore toolset packages ( Jun 22, 2018
README.md Update the build status table Nov 8, 2018
Restore.cmd Add standard build scripts Mar 24, 2017
Roslyn.sln Merge fixups Nov 1, 2018
SourceBuild.sln NuGet packaging (#29408) Aug 27, 2018
THIRD-PARTY-NOTICES.txt Added DotNet global tool for code formatting. (#29403) Oct 10, 2018
Test.cmd Unify our build logic Jun 16, 2017
build.sh Build script cleanup (#30345) Oct 10, 2018
global.json Use Arcade bootstrapping scripts (#30498) Oct 30, 2018
netci.groovy Move Spanish job to Azure DevOps Oct 16, 2018

README.md

Welcome to the .NET Compiler Platform ("Roslyn")

Desktop Unit Tests

Branch Debug x86 Debug x64 Release x86 Release x64 Spanish
master Build Status Build Status Build Status Build Status Build Status
master-vs-deps Build Status Build Status Build Status Build Status Build Status
dev16.0-preview2 Build Status Build Status Build Status Build Status Build Status
dev16.0-preview2-vs-deps Build Status Build Status Build Status Build Status Build Status

CoreClr Unit Tests

Branch Windows Debug Windows Release Linux
master Build Status Build Status Build Status
master-vs-deps Build Status Build Status Build Status
dev16.0-preview2 Build Status Build Status Build Status
dev16.0-preview2-vs-deps Build Status Build Status Build Status

Integration Tests

Branch Debug Release
master Build Status Build Status
master-vs-deps Build Status Build Status
dev16.0-preview2 Build Status Build Status
dev16.0-preview2-vs-deps Build Status Build Status

Misc Tests

Branch Determinism Build Correctness Mono
master Build Status Build Status Build Status
master-vs-deps Build Status Build Status Build Status
dev16.0-preview2 Build Status Build Status Build Status
dev16.0-preview2-vs-deps Build Status Build Status Build Status

Join the chat at https://gitter.im/dotnet/roslyn

Roslyn provides open-source C# and Visual Basic compilers with rich code analysis APIs. It enables building code analysis tools with the same APIs that are used by Visual Studio.

Language Design Discussion

We are now taking language feature discussion in other repositories:

Discussion about the transition of language design to the new repos is at https://github.com/dotnet/roslyn/issues/18002.

Download C# and Visual Basic

Want to start developing in C# and Visual Basic? Download Visual Studio 2017, which has the latest features built-in. There are also prebuilt Azure VM images available with Visual Studio 2017 already installed.

To install the latest release without Visual Studio, run one of the following nuget command lines:

nuget install Microsoft.Net.Compilers   # Install C# and VB compilers
nuget install Microsoft.CodeAnalysis    # Install Language APIs and Services

Daily NuGet builds of the project are also available in our MyGet feed:

https://dotnet.myget.org/F/roslyn/api/v3/index.json

See what's new with the C# and VB compilers.

Source code

Get started

Contribute!

Some of the best ways to contribute are to try things out, file bugs, and join in design conversations.

Looking for something to work on? The list of up for grabs issues is a great place to start.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

.NET Foundation

This project is part of the .NET Foundation along with other projects like the class libraries for .NET Core.