XDocumentExtensions.

GetProjectReferences(XDocument, DirectoryPath) Method

Summary

Returns all <ProjectReference> entries, resolving Include paths relative to rootPath.

Syntax

public static ICollection<ProjectReference> GetProjectReferences(this XDocument document, DirectoryPath rootPath)

Parameters

Name Type Description
document XDocument the document
rootPath DirectoryPath the project root directory used for path resolution

Return Value

Type Description
ICollection<ProjectReference> the collection of project references