Table of Contents

Class PackageReferenceItemGroup

Namespace
SunamoDevCode.Aps.Projs.Data.ItemGroup
Assembly
SunamoDevCode.dll

Represents a package reference item group (NuGet) in .NET Core and .NET Framework projects.

public class PackageReferenceItemGroup : ItemGroupElement
Inheritance
PackageReferenceItemGroup
Inherited Members
Extension Methods

Constructors

PackageReferenceItemGroup(string)

Initializes a new instance of the PackageReferenceItemGroup class.

public PackageReferenceItemGroup(string fullCsprojPath)

Parameters

fullCsprojPath string

Full path to the csproj file.

PackageReferenceItemGroup(string, XmlNode)

Initializes a new instance of the PackageReferenceItemGroup class from an XML node.

public PackageReferenceItemGroup(string fullCsprojPath, XmlNode xmlElement)

Parameters

fullCsprojPath string

Full path to the csproj file.

xmlElement XmlNode

XML element containing the package reference data.

Fields

Type

Type information for runtime type checking.

public static Type Type

Field Value

Type

Properties

Version

Gets or sets the version of the package reference.

public string? Version { get; set; }

Property Value

string

Methods

ToXml(XmlDocument)

Converts the package reference item group to an XML node.

public override XmlNode ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The XML document to use for creating the node.

Returns

XmlNode

The XML node representing the package reference item group, or null if not implemented.