8 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.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)
2140
(old, value) => old.
WithProjectMetadataReferences
(projectId, value),
2145
Assert.Throws<ArgumentNullException>("projectId", () => solution.
WithProjectMetadataReferences
(null!, [metadataRef]));
2146
Assert.Throws<InvalidOperationException>(() => solution.
WithProjectMetadataReferences
(ProjectId.CreateNewId(), [metadataRef]));
2183
solution = solution.
WithProjectMetadataReferences
(projectId, [metadataRef1, metadataRef2]);
5024
.
WithProjectMetadataReferences
(projectId, [NetFramework.mscorlib])