9 references to WithAnalyzerReferences
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
767
project = project.
WithAnalyzerReferences
([new AnalyzerImageReference([.. nugetAnalyzerReferences])]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
375
project = project.
WithAnalyzerReferences
([analyzerReference])
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
383
project = project.
WithAnalyzerReferences
(isolatedAnalyzerReferences);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
96
project = project.
WithAnalyzerReferences
([analyzerReference2]);
101
project = project.
WithAnalyzerReferences
([]);
144
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep, analyzerReferenceToAddAndRemove]);
149
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep]);
1481
project1 = project1.
WithAnalyzerReferences
([new AnalyzerFileReference(analyzerPath, DoNotLoadAssemblyLoader.Instance)]);
1502
project1 = project1.
WithAnalyzerReferences
([new AnalyzerFileReference(analyzerPath, DoNotLoadAssemblyLoader.Instance)]);