banner



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:
    1. Correct click on the Project Name
    2. Select "Backdrop" (terminal option in bill of fare)
    Above steps are shown below with reference numbering:

    Project Propeties

  • Modify Project Properties as per below steps:
    1. Select "Build" from left hand side options
    2. Scroll down till terminate and click on "Accelerate" button.
    3. It will open a popup and there y'all volition get "Language Version" dropdown
    4. Select desired version of C# and Click "OK"
    Higher up steps are shown below with reference numbering:

    Provide Value for Parameter

Default versions of C#

Past default following are corresponding version of C# compilers for Visual Studio:

  1. Visual Studio 2015: C# 6.0
  2. Visual Studio 2013: C# 5.0
  3. Visual Studio 2012: C# 5.0
  4. Visual Studio 2010: C# iv.0
  5. Visual Studio 2008: C# three.0
  6. Visual Studio 2005: C# 2.0
  7. Visual Studio.NET 2003: C# 1.2
  8. 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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel