05 November 2017

viewing c# language ver used in a project

Have you ever wondered what is the C# language version used in your C# .NET project. You might have not worried about it because the version of the C# version used depends on the .NET framework version you have used for the project. In this blog post let's see how to view and change the C# version for the project.

How to view & change c# language version

  • Right click on the .NET project in visual studio and choose Properties.
  • In the left navigation tree, click on the "Build" tab. And browse to the end of the screen and click on the "Advanced..." button.
  • By default Language Version is "default", meaning it uses major C# language version. In the case below as you can see in the image, "default" means "C# 7.0".
  • No comments:

    Post a Comment