dotnet sln remove flattens the solution items
See original GitHub issueSteps to reproduce
- Set up an sln with nested solution items.
- Remove a project
Expected behavior
The nested solution items should be preserved.
Actual behavior
The nested solution items get flattened. For a repro see the following repo: https://github.com/cveld/dotnet-cli-sln-remove-issue
Environment data
dotnet --info
output:
.NET Core SDK (reflecting any global.json):
Version: 2.1.503
Commit: 4c506e0f35
Runtime Environment: OS Name: Windows OS Version: 6.3.9600 OS Platform: Windows RID: win81-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.503\
Host (useful for support): Version: 2.1.7 Commit: cca5d72d48
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
dotnet sln command - .NET CLI
The dotnet-sln command provides a convenient option to add, remove, and list projects in a solution file.
Read more >Moving projects files in a .NET project
Fire up notepad.exe and open the .sln file. And start Windows Explorer, navigate to the solution directory. Observe how the .sln file ...
Read more >dotnet sln add file - Developer Community
The `dotnet sln` command from the `dotnet cli` allows you to add and remove projects from a solution. But it doesn't allow you...
Read more >Beat Cache Invalidation in ASP.NET Core Using Kafka and ...
After some time, because our underlying database state is changed, we want to remove or replace cache entries. A process that is called...
Read more >10 commands you don't want to be without in .Net Core
remove, this will remove a project from your solution; list, this lists all the projects in a solution. To learn more about this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok i have found the code, and built the code locally as well. Will update once resolved.
Hi @peterhuene,
Can I take this up, first time contributor here, so may need help.
Regards, Santosh