dotnet/roslyn-sdk

Update Microsoft.CodeAnalysis.CSharp and friends for testing library?

bradwilson opened this issue · 2 comments

I'm using Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit (latest version is 1.1.1 as of the writing of this issue). The dependency version on Microsoft.CodeAnalysis.CSharp and friends is 2+ major versions behind.

The most important manifestation of this limitation is that the latest supported C# language version is 7.3, which is 5 years old at this point.

As I've been going through the process of upgrading Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.CSharp.Workspaces to 4.6.0 in the xunit.analyzers project, it seems like the testing library is able to silently accept the newer dependencies (or at least I haven't seen any compatibility issues in my usage).

That makes this feel lower priority, but would also be nice to be coupled with #1099 since that'll require a new version to be shipped.

it seems like the testing library is able to silently accept the newer dependencies

Yes, this is the intentional design for this library. Users with Roslyn 1.x analyzers can continue using it, and users for any newer version of Roslyn can provide that version explicitly and the library will use it.