What latest version of Roslyn can I configure my analyzer if I support VS2015?

I am writing a Roslyn diagnostic analyzer that should work on versions of VS2015 and later. I want to know the latest version of Microsoft.CodeAnalysis , which I can use with my project and support VS2015. I need to use the API that was added in Roslyn 1.2.0 ( AnalysisContext.EnableConcurrentExecution ), but I think that the Roslyn version is not included in VS2015 (IIRC, only VS2017 supports C # 7). Does this mean that I cannot use this API in my analyzer?

+3
c # visual-studio visual-studio-2015 roslyn
source share
1 answer

Yes, Roslyn 2.3.0 will only work with Visual Studio 2017.3 and later.

In general, mappings of Roslyn versions in Visual Studio work as follows:

Roslyn 1.0.x -> Visual Studio 2015.0 (RTM)

Roslyn 1.1.x → Visual Studio 2015.1 (update 1)

Roslyn 1.2.x → Visual Studio 2015.2 (update 2)

Roslyn 1.3.x → Visual Studio 2015.3 (Update 3)

Roslyn 2.0.x -> Visual Studio 2017.0 (RTM)

Roslyn 2.1.x → Visual Studio 2017.1

Roslyn 2.2.x → Visual Studio 2017.2

Roslyn 2.3.x → Visual Studio 2017.3

+10
source share

All Articles