How to enable C# 6.0 in Visual Studio 2013?

Visual Studio 2015 brought with himself the new C# 6 compiler (Roslyn).

Here a summary of new features
English: https://msdn.microsoft.com/en-us/magazine/dn802602.aspx
Italiano: https://msdn.microsoft.com/it-it/magazine/dn802602.aspx

However c#6 cannot be used natively under Visual Studio 2013, but it can be enabled via NuGet, installing the Microsoft.Net.Compilers.

Open a NuGet console (tools->NuGet Package Manager-> Package Manager Console) and type:
Install-Package Microsoft.Net.Compilers -Version 1.3.2
 it will download from NuGet the necessary packages to enable the Roslyn compiler.

Commenti

Post più popolari