1dotnet sln command - .NET Core CLI(1.)NET Codroetnet sln command - .NET Core CLI(1)
2
3
4
7 dotnet sln - Modifies a .NET Core solution file.
8
10 dotnet sln [<SOLUTION_NAME>] add <PROJECT> <PROJECT> ...
11 dotnet sln [<SOLUTION_NAME>] add <GLOBBING_PATTERN>
12 dotnet sln [<SOLUTION_NAME>] remove <PROJECT> <PROJECT> ...
13 dotnet sln [<SOLUTION_NAME>] remove <GLOBBING_PATTERN>
14 dotnet sln [<SOLUTION_NAME>] list
15 dotnet sln [-h|--help]
16
18 The dotnet sln command provides a convenient way to add, remove, and
19 list projects in a solution file.
20
21 Commands
22 add <PROJECT> ...
23
24 add <GLOBBING_PATTERN>
25
26 Adds a project or multiple projects to the solution file. Globbing
27 patterns are supported on Unix/Linux based terminals.
28
29 remove <PROJECT> ...
30
31 remove <GLOBBING_PATTERN>
32
33 Removes a project or multiple projects from the solution file. Glob‐
34 bing patterns are supported on Unix/Linux based terminals.
35
36 list
37
38 Lists all projects in a solution file.
39
40 Arguments
41 SOLUTION_NAME
42
43 Solution file to use. If not specified, the command searches the cur‐
44 rent directory for one. If there are multiple solution files in the
45 directory, one must be specified.
46
48 -h|--help
49
50 Prints out a short help for the command.
51
53 Add a C# project to a solution:
54
55 dotnet sln todo.sln add todo-app/todo-app.csproj
56
57 Remove a C# project from a solution:
58
59 dotnet sln todo.sln remove todo-app/todo-app.csproj
60
61 Add multiple C# projects to a solution:
62
63 dotnet sln todo.sln add todo-app/to‐
64 do-app.csproj back-end/back-end.csproj
65
66 Remove multiple C# projects from a solution:
67
68 dotnet sln todo.sln remove todo-app/to‐
69 do-app.csproj back-end/back-end.csproj
70
71 Add multiple C# projects to a solution using a globbing pattern:
72
73 dotnet sln todo.sln add **/*.csproj
74
75 Remove multiple C# projects from a solution using a globbing pattern:
76
77 dotnet sln todo.sln remove **/*.csproj
78
80 mairaw.
81
82
83
84 dotnet sln command - .NET Core CLI(1)