Open LukasGelke opened 2 months ago
This is expected to work:
ReferenceAssemblies = ReferenceAssemblies.Net.Net60 // used always
.AddPackages([new PackageIdentity("System.Collections.Immutable", "8.0.0")]) // new
Someone would need to add a unit test to MetadataReferenceTests
and debug through why it's not working.
our code-analyzer-tests use
Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest
. We now had to upgradeSystem.Collections.Immutable
to8.0.0
for all Assemblies. Whenever we now want to use these assemblies to run within tests (because we have tests specifically for Classes inside our assemblies) we get an Exception:adding
results in the following:
adding the NugetPackage like this does not change anything (in either above case):
Our verifiers are essentially a "thin wrapper" around
CodeFixVerifier<TAnalyzer, TCodeFix, TTest, TVerifier>
and Verifier.Test aroundCSharpCodeFixTest<TAnalyzer, TCodeFix, TVerifier>
, to allow for more testing and better migrating from our old tests, and as a workaround for other bugs in the past (ie tests not being able to handle 2-space indents correctly). We do not interfere with Roslyn in this subclass, we "only extend/append" (editorconfig-spacing) on what the base implementation provides. Thus I don't see us being the reason for "something not working"