在Visual Studio CTP2中的ASP.VNext项目中启用C#6 [英] Enabling C# 6 in ASP.VNext projects in Visual Studio CTP2
本文介绍了在Visual Studio CTP2中的ASP.VNext项目中启用C#6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了Visual Studio CTP2,并创建了一个新的ASP.Net Vext项目.当我尝试使用C#6.0功能时,它不起作用.我什至尝试了以下链接中的stpes.
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.
Visual Studio 2015 CTP中没有C#6.0?
但是即使那样,我仍然无法在VNext项目中使用C#6.请帮忙.
But even after this I was not able to use C# 6 in VNext projects. Please help.
推荐答案
将此添加到您的project.json:
Add this to your project.json:
"compilationOptions":{ "languageVersion":实验性" }
"compilationOptions": { "languageVersion": "experimental" }
这篇关于在Visual Studio CTP2中的ASP.VNext项目中启用C#6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文