6 references to WithAnalyzerReferences
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
779
project = project.
WithAnalyzerReferences
([new AnalyzerImageReference([.. nugetAnalyzerReferences])]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
377
project = project.
WithAnalyzerReferences
([analyzerReference])
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionWithSourceGeneratorTests.cs (4)
97
project = project.
WithAnalyzerReferences
([analyzerReference2]);
102
project = project.
WithAnalyzerReferences
([]);
145
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep, analyzerReferenceToAddAndRemove]);
150
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep]);