Class ReferenceItemGroup
- Namespace
- SunamoDevCode.Aps.Projs.Data.ItemGroup
- Assembly
- SunamoDevCode.dll
Represents a reference item group (assembly reference) in a Visual Studio project file.
public class ReferenceItemGroup : ItemGroupElement
- Inheritance
-
ReferenceItemGroup
- Inherited Members
- Extension Methods
Constructors
ReferenceItemGroup(string, string, string)
Initializes a new instance of the ReferenceItemGroup class.
public ReferenceItemGroup(string fullPathDllInclude, string fullPathCsproj, string relativePathDllToProjectFolderHintPath)
Parameters
fullPathDllIncludestringFull path to the DLL for the Include attribute.
fullPathCsprojstringFull path to the csproj file.
relativePathDllToProjectFolderHintPathstringRelative path from project folder to DLL for HintPath.
ReferenceItemGroup(string, XmlNode)
Initializes a new instance of the ReferenceItemGroup class from an XML node.
public ReferenceItemGroup(string fullPathCsproj, XmlNode xmlElement)
Parameters
fullPathCsprojstringFull path to the csproj file.
xmlElementXmlNodeXML element containing the reference data.
Fields
Type
Type information for runtime type checking in ItemGroup processing.
public static readonly Type Type
Field Value
Properties
IncludeParts
Dictionary of parsed Include attribute parts (e.g., Version, Culture, PublicKeyToken).
public Dictionary<string, string> IncludeParts { get; set; }
Property Value
Version
Gets the version from the parsed Include attribute parts.
public string Version { get; }
Property Value
Methods
ToXml(XmlDocument)
Converts the 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 reference item group.