9 references to WithProjectMetadataReferences
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
60]).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)
662=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
2078(old, value) => old.WithProjectMetadataReferences(projectId, value), 2083Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectMetadataReferences(null!, [metadataRef])); 2084Assert.Throws<InvalidOperationException>(() => solution.WithProjectMetadataReferences(ProjectId.CreateNewId(), [metadataRef])); 2121solution = solution.WithProjectMetadataReferences(projectId, [metadataRef1, metadataRef2]); 4871.WithProjectMetadataReferences(projectId, [NetFramework.mscorlib])