Definition
Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Scaffolding Inheritance: System.ObjectSyntax
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
objectSyntax
Properties
BuildTypes
Gets the build types (configurations) the solution declares, in the order they were added. Always starts withDebug 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 asDEV. 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 exampleDirectory.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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
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
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
objectSyntax
Returns
Type:string?