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
fullCsprojPathstringFull 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
fullCsprojPathstringFull path to the csproj file.
xmlElementXmlNodeXML element containing the package reference data.
Fields
Type
Type information for runtime type checking.
public static Type Type
Field Value
Properties
Version
Gets or sets the version of the package reference.
public string? Version { get; set; }
Property Value
Methods
ToXml(XmlDocument)
Converts the package reference item group to an XML node.
public override XmlNode ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe XML document to use for creating the node.
Returns
- XmlNode
The XML node representing the package reference item group, or null if not implemented.