Table of Contents

Class DuplicatesInItemGroup

Namespace
SunamoCsproj.Data
Assembly
SunamoCsproj.dll

Represents duplicate references found in csproj ItemGroup elements.

public class DuplicatesInItemGroup
Inheritance
DuplicatesInItemGroup
Inherited Members
Extension Methods

Properties

DuplicatedPackages

Gets or sets the list of duplicated package references.

public List<string> DuplicatedPackages { get; set; }

Property Value

List<string>

DuplicatedProjects

Gets or sets the list of duplicated project references.

public List<string> DuplicatedProjects { get; set; }

Property Value

List<string>

ExistsInPackageAndProjectReferences

Gets or sets the list of references that exist in both package and project references.

public List<string> ExistsInPackageAndProjectReferences { get; set; }

Property Value

List<string>

Methods

AppendToSb(StringBuilder, string)

Appends duplicate information to StringBuilder.

public void AppendToSb(StringBuilder stringBuilder, string path)

Parameters

stringBuilder StringBuilder

The StringBuilder to append to.

path string

The file path to include in output.

HasDuplicates()

Checks if any duplicates exist.

public bool HasDuplicates()

Returns

bool

True if any duplicates exist, false otherwise.