没有C#6.0在Visual Studio 2015年CTP? [英] No C# 6.0 in Visual Studio 2015 CTP?

查看:183
本文介绍了没有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.

这篇关于没有C#6.0在Visual Studio 2015年CTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆