Click or drag to resize

WorkspaceCheckProjectDoesNotHaveMetadataReference Method



Throws an exception if a project already has a specific metadata reference.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
protected void CheckProjectDoesNotHaveMetadataReference(
	ProjectId projectId,
	MetadataReference metadataReference
)

Parameters

projectId
Type: Microsoft.CodeAnalysisProjectId
metadataReference
Type: Microsoft.CodeAnalysisMetadataReference
See Also