This repository has been archived on 2025-09-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
dotnet-installer/Documentation/manpages/sdk/dotnet-sln.1
2018-05-30 15:52:55 +00:00

82 lines
2.2 KiB
Groff

.\" Automatically generated by Pandoc 2.2.1
.\"
.TH "dotnet sln command \- .NET Core CLI" "1" "" "" ".NET Core"
.hy
.SH dotnet sln
.PP
.SH NAME
.PP
\f[C]dotnet\ sln\f[] \- Modifies a .NET Core solution file.
.SH SYNOPSIS
.IP
.nf
\f[C]
dotnet\ sln\ [<SOLUTION_NAME>]\ add\ <PROJECT>\ <PROJECT>\ ...
dotnet\ sln\ [<SOLUTION_NAME>]\ add\ <GLOBBING_PATTERN>
dotnet\ sln\ [<SOLUTION_NAME>]\ remove\ <PROJECT>\ <PROJECT>\ ...
dotnet\ sln\ [<SOLUTION_NAME>]\ remove\ <GLOBBING_PATTERN>
dotnet\ sln\ [<SOLUTION_NAME>]\ list
dotnet\ sln\ [\-h|\-\-help]
\f[]
.fi
.SH DESCRIPTION
.PP
The \f[C]dotnet\ sln\f[] command provides a convenient way to add, remove, and list projects in a solution file.
.SS Commands
.PP
\f[C]add\ <PROJECT>\ ...\f[]
.PP
\f[C]add\ <GLOBBING_PATTERN>\f[]
.PP
Adds a project or multiple projects to the solution file.
Globbing patterns are supported on Unix/Linux based terminals.
.PP
\f[C]remove\ <PROJECT>\ ...\f[]
.PP
\f[C]remove\ <GLOBBING_PATTERN>\f[]
.PP
Removes a project or multiple projects from the solution file.
Globbing patterns are supported on Unix/Linux based terminals.
.PP
\f[C]list\f[]
.PP
Lists all projects in a solution file.
.SS Arguments
.PP
\f[C]SOLUTION_NAME\f[]
.PP
Solution file to use.
If not specified, the command searches the current directory for one.
If there are multiple solution files in the directory, one must be specified.
.SH OPTIONS
.PP
\f[C]\-h|\-\-help\f[]
.PP
Prints out a short help for the command.
.SH EXAMPLES
.PP
Add a C# project to a solution:
.PP
\f[C]dotnet\ sln\ todo.sln\ add\ todo\-app/todo\-app.csproj\f[]
.PP
Remove a C# project from a solution:
.PP
\f[C]dotnet\ sln\ todo.sln\ remove\ todo\-app/todo\-app.csproj\f[]
.PP
Add multiple C# projects to a solution:
.PP
\f[C]dotnet\ sln\ todo.sln\ add\ todo\-app/todo\-app.csproj\ back\-end/back\-end.csproj\f[]
.PP
Remove multiple C# projects from a solution:
.PP
\f[C]dotnet\ sln\ todo.sln\ remove\ todo\-app/todo\-app.csproj\ back\-end/back\-end.csproj\f[]
.PP
Add multiple C# projects to a solution using a globbing pattern:
.PP
\f[C]dotnet\ sln\ todo.sln\ add\ **/*.csproj\f[]
.PP
Remove multiple C# projects from a solution using a globbing pattern:
.PP
\f[C]dotnet\ sln\ todo.sln\ remove\ **/*.csproj\f[]
.SH AUTHORS
mairaw.