question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet sln remove flattens the solution items

See original GitHub issue

Steps 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
santoshyadavdevcommented, Apr 4, 2019

Ok i have found the code, and built the code locally as well. Will update once resolved.

2reactions
santoshyadavdevcommented, Apr 1, 2019

Hi @peterhuene,

Can I take this up, first time contributor here, so may need help.

Regards, Santosh

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found