9 references to WithProjectMetadataReferences
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
61]).WithProjectMetadataReferences(
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\Extensions.cs (1)
77.WithProjectMetadataReferences(id, TargetFrameworkUtil.GetReferences(targetFramework))
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
46WithProjectMetadataReferences(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.NetStandard20)).
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Project.cs (1)
663=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
2081(old, value) => old.WithProjectMetadataReferences(projectId, value), 2086Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectMetadataReferences(null!, [metadataRef])); 2087Assert.Throws<InvalidOperationException>(() => solution.WithProjectMetadataReferences(ProjectId.CreateNewId(), [metadataRef])); 2124solution = solution.WithProjectMetadataReferences(projectId, [metadataRef1, metadataRef2]); 4859.WithProjectMetadataReferences(projectId, [NetFramework.mscorlib])