30 references to AddMetadataReference
Microsoft.AspNetCore.App.Analyzers.Test (2)
Infrastructure\WellKnownTypesTests.cs (1)
65project = project.AddMetadataReference(MetadataReference.CreateFromStream(assemblyStream));
TestDiagnosticAnalyzer.cs (1)
159project = project.AddMetadataReference(MetadataReference.CreateFromFile(assembly));
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
340project = project.AddMetadataReference(MetadataReference.CreateFromFile(resolveReferencePath));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
340project = project.AddMetadataReference(MetadataReference.CreateFromFile(resolveReferencePath));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (13)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
3191var updatedP1 = p1.AddMetadataReference(reference); 3245var updatedProject = project.AddMetadataReference(libRef);
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
228project = project.AddMetadataReference(MetadataReference.CreateFromFile(GetDllPath(path)));
PdbSourceDocument\ImplementationAssemblyLookupServiceTests.cs (8)
184implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 244implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 305implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 360implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 411implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 476implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 534implProject = workspace.CurrentSolution.Projects.First().AddMetadataReference(MetadataReference.CreateFromFile(dllFilePath)); 548implProject = workspace.CurrentSolution.Projects.First().AddMetadataReference(MetadataReference.CreateFromFile(realImplementationDllFilePath));
PdbSourceDocument\PdbSourceDocumentTests.cs (2)
547implProject = implProject.AddMetadataReference(MetadataReference.CreateFromFile(implementationDllFilePath)); 943project = project.AddMetadataReference(MetadataReference.CreateFromFile(GetDllPath(path)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (3)
79.AddMetadataReference(NetFramework.mscorlib) 92var project = context.DefaultProject.AddMetadataReference(references[0]); 95project = project.RemoveMetadataReference(references[0]).AddMetadataReference(references[1]);
Preview\PreviewWorkspaceTests.cs (1)
73.AddMetadataReference(NetFramework.mscorlib)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
635project = project.AddMetadataReference(metadataReference);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
CodeCleanup\AddMissingTokensTests.cs (1)
2732return project.AddMetadataReference(NetFramework.mscorlib)
CodeCleanup\FixIncorrectTokenTests.cs (1)
757return project.AddMetadataReference(NetFramework.mscorlib)
CodeCleanup\ReduceTokenTests.cs (1)
2020return project.AddMetadataReference(NetFramework.mscorlib)
SemanticModelReuse\SemanticModelReuseTests.cs (1)
29return project.AddMetadataReference(Net40.References.mscorlib)
SolutionTests\SolutionTests.cs (1)
2788.AddMetadataReference(s_mscorlib)
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.AddMetadataReferenceUndoUnit.cs (1)
50var updatedProject = fromProject.AddMetadataReference(reference);
Mvc.Api.Analyzers.Test (1)
Infrastructure\MvcDiagnosticAnalyzerRunner.cs (1)
39project = project.AddMetadataReference(MetadataReference.CreateFromFile(assembly));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\ServiceHubServicesTests.cs (1)
1728.AddMetadataReference(MetadataReference.CreateFromFile(typeof(object).Assembly.Location))