New C sharp 7 features in action: Migrate existing .NET 4 or .NET 4.5 Application to VS 2017 to support/enable C sharp 7
Step 1: Open your existing .NET 4 or .NET 4.5 application in VS 2017, this will work smoothly.
Step 2: Update Nuget package to support/enable C# 7
Existing packages that are required to be updated:
Update Microsoft.Net.Compilers & Microsoft.CodeDom.Providers.DotNetCompilerPlatform to latest versions.
Step 3: Support for C# 7 Tuple Types and Tuple Literals
Install System.ValueTuple Nuget package
That’s it, you should be able to use C# 7 features in your .Net Application.
Step 4: Set Language Version to C# 7 in of C# project file (not required in most of the cases)
Happy Coding !!!
.NET Professional | Microsoft Certified Professional | DZone’s Most Valuable Blogger | Web Developer | Author | Blogger
Doctorate in Computer Science and Engineering
Microsoft Certified Professional (MCP) with over 12+ years of software industry experience including development, implementation & deployment of applications in the .NET framework
Experienced and skilled Agile Developer with a strong record of excellent teamwork, successful coding & project management. Specialises in problem identification and proposal of alternative solutions. Provided knowledge and individual mentoring to team members as needed
Among top 3% overall in terms of contribution on Stack Overflow (~2.3 million people reached my posts). Part of the top 1% Stack Overflow answerers in ASP.NET technology.
DZone’s Most Valuable Blogger (MVB)
Created and actively maintain the TechCartNow.com tech blog while also editing, writing, and researching topics for publication.
Excellent skills in Application Development using C#/Vb.Net, .NET Framework, ASP.NET, MVC, ADO.NET, WCF, WPF, Web API, SQL Server, jQuery, Angular, React, BackboneJS