XDocumentExtensions.

GetAssemblyReferences(XDocument, DirectoryPath) Method

Summary

Returns all <Reference> entries declared in the project, resolving HintPath values relative to rootPath.

Syntax

public static ICollection<ProjectAssemblyReference> GetAssemblyReferences(this XDocument document, DirectoryPath rootPath)

Parameters

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

Return Value

Type Description
ICollection<ProjectAssemblyReference> the collection of assembly references