sharpenrocks / Sharpen

Visual Studio extension that intelligently introduces new C# features into your existing codebase
https://sharpen.rocks
MIT License
418 stars 32 forks source link

(WIP) Provide information to users if a C# suggestion cannot be applied because a lower language version #26

Closed shankyjain7243 closed 5 years ago

shankyjain7243 commented 5 years ago

Hi @ironcev ,

I was able to compare the minimum language version with the project's language version, however had a couple of questions:

  1. We are using CSharpLanguageVersions class to identify language versions, which can also be done via Microsoft.CodeAnalysis.CSharp.LanguageVersion enum, do I replace the class with the enum around the source code ?

  2. Attaching the expected screenshot on the issue itself.

Please let me know so I can update the issue.

ironcev commented 5 years ago

See explanation in this comment: https://github.com/sharpenrocks/Sharpen/issues/13#issuecomment-517942874