Easily enabling C# 6 (and Visual Basic 14) in your .NET projects

Posted: (EET/GMT+2)

 

Good news for all developers wishing to enable new C# language version 6 (C# 6) and Visual Basic 14 (VB 14) features in their existing .NET projects in Visual Studio: when you have Update 2 installed, you can use a new, easy menu command to do just that.

That is, Visual Studio's Project menu contains a new command called "Enable C# 6 / VB 14", which allows you to easily install the required NuGet packages into your project and/or solution. The package is named Microsoft.CodeDom.Providers.DotNetCompilerPlatform and contains the latest "Roslyn" compiler versions.