Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use the C# 5 compiler from VS2010?

I prefer the VS2010 UI over VS2012 so I want to keep using it, but I would like to use the language features of C# 5 - particularly the caller information attributes - if not the features of the .NET framework 4.5. Is there a sensible way to do this that will maintain intellisense in VS?

I am aware that I could invoke the v5 compiler 'semi-manually' as a build action but I think that will be neither smooth nor productive. Is it possible to create a custom targetting pack, or is this a feature that only MS can create?

like image 598
Stephen Hewlett Avatar asked Oct 15 '12 01:10

Stephen Hewlett


People also ask

What is '\ A in C?

It is an ascii character and can be used anywhere. \a Is used to display a sound.

Is C still being used?

Despite the prevalence of higher-level languages, C continues to empower the world. The following are some of the systems that are used by millions and are programmed in the C language.

Can you do everything C?

You can do almost everything in any of the programming languages. Of course the way of expressing it will vary, as well as the amount of code, clarity of code, ease of further maintenance. Some tasks can be coded with few lines in Prolog and few pages of code in C++, and so on.

Can you use C for AI?

It is a programming language for time-sensitive AI/machine learning projects. It works great with statistical AI approach, which is a part of neural networks. C and C++ were also used for the development of numerous machine learning/deep learning libraries.


1 Answers

VS2010 is unaware of the 5.0 compiler and language specifications nor does it support version 4.5 of the framework.

You can likely edit your solution within VS2010 and then build your solution externally but doing so you lose intelli sense and all the niceties that make VS what it is. So no.

like image 178
andleer Avatar answered Sep 24 '22 05:09

andleer