Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Scaffolding Inheritance: System.Object

Syntax

Summary

Builds a Visual Studio .slnx solution file in-process with Microsoft.VisualStudio.SolutionPersistence, placing projects and solution items into solution folders.

Constructors

.ctor

Initializes a new instance of the SolutionFileBuilder class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

BuildTypes

Gets the build types (configurations) the solution declares, in the order they were added. Always starts with Debug and Release.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyList<string>

SolutionDirectory

Gets the directory the solution file is written to. Project and item paths are stored relative to it.

Syntax

Property Value

Type: string

SolutionName

Gets the solution file name without extension.

Syntax

Property Value

Type: string

Methods

AddBuildType

Adds a build type (configuration) such as DEV. Duplicates are ignored.

Syntax

Parameters

Returns

Type: CloudNimble.EasyAF.Tools.Scaffolding.SolutionFileBuilder The current instance for method chaining.

AddProject

Adds a project to a solution folder.

Syntax

Parameters

Returns

Type: CloudNimble.EasyAF.Tools.Scaffolding.SolutionFileBuilder The current instance for method chaining.

Exceptions

AddSolutionItem

Adds a loose file (for example Directory.Build.props) to a solution folder.

Syntax

Parameters

Returns

Type: CloudNimble.EasyAF.Tools.Scaffolding.SolutionFileBuilder The current instance for method chaining.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

SaveAsync

Writes the solution file, replacing any existing file of the same name.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<string> The full path of the written solution file.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?