How to do it...

  1. Start Visual Studio and click on File | New | Project...
  2. Change the project target framework combo box to the .NET Framework 4.6 (or above). Under Visual C# | Extensibility, choose Code Refactoring (VSIX), name your project CodeRefactoring, and click on OK:
  1. You should now have a solution with two projects: CodeRefactoring and CodeRefactoring.Vsix.
  2. Change the CodeRefactoring project to target .NET Framework v4.6 using the following steps:
      • Unload the project and edit csproj in Visual Studio
      • Remove the properties ProjectTypeGuids and TargetFrameworkProfile
    • Change the property TargetFrameworkVersion from v4.5 to v4.6. ...

Get Roslyn Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.