36 references to AddMetadataReference
IdeCoreBenchmarks (1)
SwitchStatementBenchmarks.cs (1)
71solution = solution.AddMetadataReference(projectId, MetadataReference.CreateFromFile(typeof(object).Assembly.Location));
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
49solution = solution.AddMetadataReference(projectId, MetadataReference.CreateFromFile(resolveReferencePath));
DiagnosticVerifier.cs (1)
169Solution = Solution.AddMetadataReference(projectId, MetadataReference.CreateFromFile(resolveReferencePath));
Microsoft.AspNetCore.Components.Analyzers.Tests (4)
Helpers\DiagnosticVerifier.Helper.cs (4)
154.AddMetadataReference(projectId, CorlibReference) 155.AddMetadataReference(projectId, SystemCoreReference) 156.AddMetadataReference(projectId, CSharpSymbolsReference) 157.AddMetadataReference(projectId, CodeAnalysisReference);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (4)
Helpers\DiagnosticVerifier.Helper.cs (4)
154.AddMetadataReference(projectId, CorlibReference) 155.AddMetadataReference(projectId, SystemCoreReference) 156.AddMetadataReference(projectId, CSharpSymbolsReference) 157.AddMetadataReference(projectId, CodeAnalysisReference);
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
829.AddMetadataReference(projectId, newReference);
Workspace\Solution\Project.cs (1)
640=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
Workspace\Workspace.cs (1)
911return oldSolution.AddMetadataReference(projectId, metadataReference);
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
FindAllDeclarationsTests.cs (5)
137.AddMetadataReference(csharpId, MscorlibRef); 142.AddMetadataReference(vbId, MscorlibRef); 163.AddMetadataReference(submission0Id, MscorlibRef) 178.AddMetadataReference(submission1Id, MscorlibRef) 701.AddMetadataReference(pid, MscorlibRef);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
98.AddMetadataReference(pid, MscorlibRef); 118.AddMetadataReference(pid, MscorlibRef);
FindReferencesTests.cs (6)
65.AddMetadataReference(pid, MscorlibRef) 75.AddMetadataReference(pid, MscorlibRef); 124.AddMetadataReference(pid, MscorlibRef) 174.AddMetadataReference(prj1Id, MscorlibRef) 213.AddMetadataReference(prj1Id, MscorlibRef) 277.AddMetadataReference(prj1Id, MscorlibRef)
SolutionTests\SolutionTests.cs (8)
2824.AddMetadataReference(pm1, s_mscorlib) 2826.AddMetadataReference(pm2, s_mscorlib) 2946solution = solution.AddMetadataReference(project1, s_mscorlib); 2948solution = solution.AddMetadataReference(project1, mefReference); 3042solution = solution.AddMetadataReference(project1, s_mscorlib); 3961.AddMetadataReference(pid1, s_mscorlib) 3964.AddMetadataReference(pid2, s_mscorlib) 3967.AddMetadataReference(pid3, s_mscorlib)
Microsoft.VisualStudio.LanguageServices (1)
Preview\ReferenceChange.MetadataReferenceChange.cs (1)
24=> solution.AddMetadataReference(this.ProjectId, _reference);