XDocumentExtensions.

GetDotNetCliToolReferences(XDocument) Method

Summary

Returns all <DotNetCliToolReference> entries declared in the project.

Syntax

public static ICollection<DotNetCliToolReference> GetDotNetCliToolReferences(this XDocument document)

Parameters

Name Type Description
document XDocument the document

Return Value

Type Description
ICollection<DotNetCliToolReference> the collection of CLI tool references (empty array if none)