Table of Contents

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

fullPathDllInclude string

Full path to the DLL for the Include attribute.

fullPathCsproj string

Full path to the csproj file.

relativePathDllToProjectFolderHintPath string

Relative 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

fullPathCsproj string

Full path to the csproj file.

xmlElement XmlNode

XML element containing the reference data.

Fields

Type

Type information for runtime type checking in ItemGroup processing.

public static readonly Type Type

Field Value

Type

Properties

IncludeParts

Dictionary of parsed Include attribute parts (e.g., Version, Culture, PublicKeyToken).

public Dictionary<string, string> IncludeParts { get; set; }

Property Value

Dictionary<string, string>

Version

Gets the version from the parsed Include attribute parts.

public string Version { get; }

Property Value

string

Methods

ToXml(XmlDocument)

Converts the 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 reference item group.