Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Use latest version of Roslyn with VS2015 #20732

Closed
Evangelink opened this issue Jul 9, 2017 · 5 comments
Closed

[Question] Use latest version of Roslyn with VS2015 #20732

Evangelink opened this issue Jul 9, 2017 · 5 comments
Assignees
Labels

Comments

@Evangelink
Copy link
Member

Hi guys,

We have an extension for VS (2015 no update to 2017) providing custom rules (based on roslyn 1.0) and we are wondering if you could think of any better way than duplicating the code (or part of it) so that we could use the latest API while still remaining compatible with VS2015 no update?

Thanks for your feedback!

@Evangelink Evangelink changed the title [Question] Version of Roslyn [Question] Use latest version of Roslyn with VS2015 Jul 9, 2017
@sharwell
Copy link
Member

sharwell commented Jul 9, 2017

It is possible to retain compatibility with Visual Studio 2015, but the mechanism to do so varies substantially based on the specific API you are trying to use. Can you clarify each specific API type/call you would like to use?

@Evangelink
Copy link
Member Author

Hi @sharwell!

Not sure whether you want the list of old APIs or the list of the new ones. Basically we have this code base (SonarC#) and we want to keep compatibility with VS2015 no update (at best and Update 3 at worst) while being able to rely on new features (especially everything around the syntax of C# 7). We haven't had the opportunity to make many tests yet but simply updating Roslyn NuGet makes the analyzer no longer working with VS2015 no update. If you have some documentation/guidance around how to solve this issue we would be really glad!

I do understand the question might be a bit vague but as we are developing static code analyzers based on Roslyn we tend to use a wild range of the APIs you provide.

@sharwell
Copy link
Member

@Evangelink I'm looking for a list of new APIs you want to use.

For syntax specifically, the StyleCop Analyzers rolled a wrapper for everything that is compatible with 2015 and 2017. See DotNetAnalyzers/StyleCopAnalyzers#2370. For other APIs let me know.

@Evangelink
Copy link
Member Author

@sharwell We will have a look at this wrapper and will get back to you with a precise list.

Thanks

@sharwell sharwell added the Need More Info The issue needs more information to proceed. label Jul 18, 2017
@Evangelink
Copy link
Member Author

Hi @sharwell.
We have decided to split the analyzer into 2 solutions that will use different versions of Roslyn in order to support C#7.

I think you can close this ticket.

@sharwell sharwell added Resolution-Answered The question has been answered and removed Need More Info The issue needs more information to proceed. labels Jul 24, 2017
@sharwell sharwell self-assigned this Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants