9 references to WithProjectMetadataReferences
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4556
.
WithProjectMetadataReferences
(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.Net60));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
65
}).
WithProjectMetadataReferences
(
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
49
WithProjectMetadataReferences
(projectId, TargetFrameworkUtil.GetReferences(TargetFramework.NetStandard20)).
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Project.cs (1)
632
=> this.Solution.
WithProjectMetadataReferences
(this.Id, metadataReferences).GetProject(this.Id)!;
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
1513
(old, value) => old.
WithProjectMetadataReferences
(projectId, value),
1518
Assert.Throws<ArgumentNullException>("projectId", () => solution.
WithProjectMetadataReferences
(null!, new[] { metadataRef }));
1519
Assert.Throws<InvalidOperationException>(() => solution.
WithProjectMetadataReferences
(ProjectId.CreateNewId(), new[] { metadataRef }));
1556
solution = solution.
WithProjectMetadataReferences
(projectId, new[] { metadataRef1, metadataRef2 });
4079
.
WithProjectMetadataReferences
(projectId, new[] { TestMetadata.Net451.mscorlib })