9 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)
374
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)
94
project = project.
WithAnalyzerReferences
([analyzerReference2]);
99
project = project.
WithAnalyzerReferences
([]);
142
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep, analyzerReferenceToAddAndRemove]);
147
project = project.
WithAnalyzerReferences
([generatorReferenceToKeep]);
1439
project1 = project1.
WithAnalyzerReferences
([new AnalyzerFileReference(analyzerPath, DoNotLoadAssemblyLoader.Instance)]);
1459
project1 = project1.
WithAnalyzerReferences
([new AnalyzerFileReference(analyzerPath, DoNotLoadAssemblyLoader.Instance)]);