Partager via


Solution.RemoveProjectReference(ProjectId, ProjectReference) Méthode

Définition

Créez une instance de solution avec le projet spécifié pour ne plus inclure la référence de projet spécifiée.

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

Paramètres

projectId
ProjectId
projectReference
ProjectReference

Retours

Exceptions

projectReference a la valeur null.

La solution ne contient projectIdpas .

S’applique à