Definition
Assembly: CloudNimble.EasyAF.MSBuild.dll Namespace: CloudNimble.EasyAF.MSBuild Inheritance: System.ObjectSyntax
Summary
Builder class for configuring MSBuild ItemGroups in a fluent manner.Remarks
This class provides a fluent API for adding items to MSBuild ItemGroups, making it easier to construct complex project structures programmatically.Constructors
.ctor Inherited
Inherited from
objectSyntax
Methods
AddAdditionalFiles
Adds an AdditionalFiles item to the ItemGroup.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
include | string | The file pattern to include. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
An ItemBuilder for further configuration of the AdditionalFiles item.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when include is null or whitespace. |
AddItem
Adds a generic item to the ItemGroup.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
itemType | string | The type of the item. |
include | string | The include value for the item. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
An ItemBuilder for further configuration of the item.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when itemType or include is null or whitespace. |
AddPackageReference
Adds a PackageReference item to the ItemGroup.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
packageId | string | The package ID. |
version | string | The package version. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
An ItemBuilder for further configuration of the PackageReference.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when packageId or version is null or whitespace. |
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?