This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Returns all <PackageReference> entries declared in the project, resolving
PrivateAssets / IncludeAssets / ExcludeAssets attributes or child elements and any
TargetFramework condition on the element or its parent ItemGroup.
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .XDocumentExtensions - Containing Type
- XDocumentExtensions
Syntax
public static ICollection<ParsedPackageReference> GetPackageReferences(this XDocument document)
Parameters
| Name | Type | Description |
|---|---|---|
| document | XDocument | the document |
Return Value
| Type | Description |
|---|---|
| ICollection |
the collection of parsed package references |
