I am trying to add a csproj to a sln using dotnet sln command line.
Adding the project is easily achievable using the below command.
dotnet sln todo.sln add todo-app/todo-app.csproj
But how do I add the same under a Solution Folder
I am trying to add a csproj to a sln using dotnet sln command line.
Adding the project is easily achievable using the below command.
dotnet sln todo.sln add todo-app/todo-app.csproj
But how do I add the same under a Solution Folder
On
Follow these steps:
dotnet new sln --name "your solution name"dotnet sln add "path of your .csproj file along with the name"Example: If your name of the solution file would be "MyProject.sln" and the csproj is in same path then
dotnet new sln --name MyProject.slndotnet sln add MyProject.csproj
As of .NET Core 3 (preview, test with 3.0.100-preview7-X)
dotnet sln solution.sln add --solution-folder foo1\foo2\foo3 bar.csprojIt creates a nested hierarchy as of