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
stringBuilderStringBuilderThe 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
slnPathstringThe path to the solution file, or empty string to use the default sln in the current directory.
csprojRelativePathstringThe 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)