Cloud Training (Online)




How to Change the C# Language Version to Build in Visual Studio 2015 ?

By default , when you create an application(Windows Phone / Windows Forms/Desktop application) in Visual Studio 2015 , it uses the C# as the language . If you are not using any of the new language enhancements or features of C# 6.0 , You can change the C# language version .

How to Change the C# Language Version to Build in Visual Studio 2015 ?

To change the # language version to build in Visual Studio 2015 , follow the below steps.

1. Right click on the project in the Visual Studio 2015 solution explorer and select properties.

image

2.  In the Project’s properties screen , select , BUILD from the left sidebar and click the “Advanced” button in the bottom of the “BUILD” screen.

image

3. In the “Advanced Build Settings” screen , select the language version that you want to target. and click “OK” to save.

image

4. You can now build the project and start using the features of the selected C# version.

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.