Compartir a través de


Solution.RemoveProjectReference(ProjectId, ProjectReference) Método

Definición

Cree una nueva instancia de solución con el proyecto especificado actualizado para que ya no incluya la referencia de proyecto especificada.

public:
 Microsoft::CodeAnalysis::Solution ^ RemoveProjectReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
public Microsoft.CodeAnalysis.Solution RemoveProjectReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.RemoveProjectReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveProjectReference (projectId As ProjectId, projectReference As ProjectReference) As Solution

Parámetros

projectId
ProjectId
projectReference
ProjectReference

Devoluciones

Excepciones

projectReference es null.

La solución no contiene projectId.

Se aplica a