Table of Contents

Class Sln

Namespace
SunamoDotnetCmdBuilder
Assembly
SunamoDotnetCmdBuilder.dll

Provides methods for generating dotnet sln commands.

public class Sln
Inheritance
Sln
Inherited Members
Extension Methods

Constructors

Sln(StringBuilder)

Provides methods for generating dotnet sln commands.

public Sln(StringBuilder stringBuilder)

Parameters

stringBuilder StringBuilder

The StringBuilder to append commands to.

Methods

AddProject(string, string)

Generates a dotnet sln add command to add a project to a solution. The slnPath can be empty when running in a folder where there is only one sln file.

public void AddProject(string slnPath, string csprojRelativePath)

Parameters

slnPath string

The path to the solution file, or empty string to use the default sln in the current directory.

csprojRelativePath string

The relative path to the csproj file to add.

RemoveProject(string, string)

Generates a dotnet sln remove command to remove a project from a solution.

public void RemoveProject(string slnFile, string projectPath)

Parameters

slnFile string

The path to the solution file.

projectPath string

The path to the project to remove.