没有C#6.0在Visual Studio 2015年CTP?

问题描述:

我刚刚创建了一个新的虚拟机在Azure上(使用由Azure团队从库中提供的映像)的 CTP版即将推出的Visual Studio 2014年,昨天网上出现,以测试它,尤其是新的C#6.0的功能玩弄的。

I have just created a new VM on Azure (using the image provided by the Azure team from the gallery) with CTP version of the upcoming Visual Studio 2014 that appeared yesterday online to test it and especially to play around with new C# 6.0 features.

然而,它确实不能提供支持C#6.0开箱,对于没有语言扩展(主要建设者,物业初始化,安全航行运营商)那里工作。

However, it does not provide support for C# 6.0 out of the box, for none of the language extensions (primary constructors, property initializers, safe navigation operator) work there.

http://blogs.msdn.com/b/csharpfaq/archive/2014/06/03/visual-studio-14-ctp-now-available.aspx\">A博客条目表明添加以下项目设置:

A blog entry on MSDN suggests adding the following to project settings:

 <LangVersion>Experimental</LangVersion>



但是,这没有改变什么在我的控制台项目。从第二个链接连示例代码不会编译的。

难道我错过了什么?

有在CTP中的错误,其中 LangVersion 开关是区分大小写的。尝试使用实验代替。

There is a bug in the CTP where the LangVersion switch is case sensitive. Try using experimental instead.