C#6.0支持在Visual Studio 2012 [英] C# 6.0 Support in Visual Studio 2012

查看:3074
本文介绍了C#6.0支持在Visual Studio 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在我目前的公司工作多于6个月,我们目前正在使用Visual Studio 2012年我们将开始建立一个新的应用程序,我一直试图让一个Visual Studio的承诺2015年的升级,使我们可以与最新的技术开始。不幸的是这是一个小公司,也有预算考虑的问题。

I have been working at my current company for a little over six months and we're currently using Visual Studio 2012. We are going to start building a new application and I've been trying to get a commitment to a Visual Studio 2015 upgrade so that we can start with the latest technology. Unfortunately it's a small company and there are budgets to consider.

有谁知道C#6.0将在Visual Studio 2012年我在想,得到支持,因为它是关于,成为第三代旧,可能不会得到支持。

Does anyone know if C# 6.0 will be supported in Visual studio 2012. I'm thinking that, since it's about to become 3rd generation old it may not get support.

更新:

我看到了很多相关的VS2015的社区版的意见,所以我想我会澄清我公司的有关该版本的位置。该公司拥有约20名员工和一个6人的IT团队谁都需要VS因各种原因。我们也有超过100万$的销售,所以我们不能晋级社区版

I saw a lot of comments related to the community edition of VS2015 so I thought I would clarify my company's position regarding that version. The company has around 20 employees and a 6 person IT team who all need VS for various reasons. We also have over $1M sales so we can not qualify for community edition.

更新2:

问:是否有在C#中一些特定的功能6.0你的生活不能没有

Q: Is there some specific feature in C# 6.0 you can't live without?

?答:没有任何特殊的功能,虽然财产初始化和主构造将减少在代码中有很多糠。

A: Not any particular feature although property initializers and primary constructors will cut down on a lot of chaff in code.

推荐答案

是的,你可以安装C#6.0到VS2012和VS2013每个上项目的基础上作为的NuGet包。你必须安装这个包要在C#6.0的特性每一个项目。

Yes, you can install c# 6.0 into VS2012 and VS2013 on a per project basis as a NuGet package. You'll have to install this package for every project that you want c# 6.0 features in.

https://www.nuget.org/packages/Microsoft.Net.Compilers/

安装封装Microsoft.Net.Compilers

编辑:由于在下面的评论中指出,升级你的NuGet,以便确保与nuspec文件完全兼容最新版本

As pointed out in the comments below, upgrade your NuGet to the latest version in order to ensure full compatibility with the nuspec file.

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

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