How To Update Visual Studio 2015 To 2017
Introduction
I was doing some experiment with C# half-dozen using Visual Studio 2015 Preview. I created two projects and for i project I wanted to target C# half dozen which is default in Visual Studio 2015 and then no effort is needed in this instance. Merely for other projection I wanted to write code doing aforementioned thing just targeting C# 5, in lodge to compare and appreciate how better information technology is now in C# six. I constitute that to fix targeted C# version is non straightforward in Visual Studio. It is very simple but tricky so I volition share that play a joke on here.
Changing targeted C# Version
To target desired version of linguistic communication for a project in Visual Studio, we need to accept following steps:
- Open up the projection properties window:
- Correct click on the Project Name
- Select "Backdrop" (terminal option in bill of fare)
- Modify Project Properties as per below steps:
- Select "Build" from left hand side options
- Scroll down till terminate and click on "Accelerate" button.
- It will open a popup and there y'all volition get "Language Version" dropdown
- Select desired version of C# and Click "OK"
Default versions of C#
Past default following are corresponding version of C# compilers for Visual Studio:
- Visual Studio 2015: C# 6.0
- Visual Studio 2013: C# 5.0
- Visual Studio 2012: C# 5.0
- Visual Studio 2010: C# iv.0
- Visual Studio 2008: C# three.0
- Visual Studio 2005: C# 2.0
- Visual Studio.NET 2003: C# 1.2
- Visual Studio.Net 2002: C# ane.0
Conclusion
Hope this tip may aid and save time for beginners to Visual Studio and trying to change targeted C# Version. Your comments and suggestions are most welcome to brand this article more useful. Thanks.
Reference
C# - Wikipedia Folio
Source: https://www.codeproject.com/Tips/865579/How-to-change-targeted-Csharp-version-in-Visual-St
Posted by: slaughterralmy1943.blogspot.com
0 Response to "How To Update Visual Studio 2015 To 2017"
Post a Comment