Definition
Assembly: CloudNimble.EasyAF.MSBuild.dll Namespace: CloudNimble.EasyAF.MSBuild Inheritance: System.ObjectSyntax
Summary
Builder class for configuring individual MSBuild items in a fluent manner.Remarks
This class provides a fluent API for adding metadata to MSBuild items.Constructors
.ctor Inherited
Inherited from
objectSyntax
Methods
AddMetadata
Adds metadata to the item.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The metadata name. |
value | string | The metadata value. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
The current instance for method chaining.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when name or value 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
SetLink
Sets the Link metadata for the item (commonly used with AdditionalFiles).Syntax
Parameters
| Name | Type | Description |
|---|---|---|
value | string | The Link value. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
The current instance for method chaining.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when value is null or whitespace. |
SetPrivateAssets
Sets the PrivateAssets metadata for the item (commonly used with PackageReference).Syntax
Parameters
| Name | Type | Description |
|---|---|---|
value | string | The PrivateAssets value (e.g., “all”, “runtime”, “compile”). |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
The current instance for method chaining.
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when value is null or whitespace. |
SetVisible
Sets the Visible metadata for the item.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
visible | bool | Whether the item should be visible. |
Returns
Type:CloudNimble.EasyAF.MSBuild.ItemBuilder
The current instance for method chaining.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?