Enabling C# 6 in ASP.VNext projects in Visual Studio CTP2
问题 I have installed Visual Studio CTP2 and created a new ASP.Net Vext project. When I tried using C# 6.0 features, it was not working. I even tried the stpes in the following link. No C# 6.0 in Visual Studio 2015 CTP? But even after this I was not able to use C# 6 in VNext projects. Please help. 回答1: Add this to your project.json: "compilationOptions": { "languageVersion": "experimental" } 回答2: You should not add the net451 object. Use this inside the project.json file: { "compilationOptions": {