microsoft / microsoft/vscode-dotnettools

The path of the second project is displayed as Multi level folder..\..\..\..\..\..\..\ after click "C# Startup Project" when creating two or more projects in a solution.

Open
#2,283 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-solution bug
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

The path of the second project is displayed as Multi level folder after click "C# Startup Project" when creating two or more projects in a solution.
Note:

  1. The issue does not repro on C# Dev Kit release version: 1.41.11.
  2. If close VSCode solution, re-open the solution, the issue not repro.
Image
Steps To Reproduce
  1. Create a new MAUI App (or any .NET App).
  2. Right click solution > New Project...> choose one of .NET App (any, e.g. MAUI, MAUI Blazor, Android Application, iOS Application...)
  3. Click "C# Startup Project" in the bottom right corner of the page

Actually Behavior: The path of the second project is displayed as Multi level folder..\..\..\..\..\..\..\

Image
Expected Behavior

Display the actual folder hierarchy:
Image

Environment Information

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a VS Code solution containing two .NET projects by creating a new project and selecting "C# Startup Project." Inspect the solution's project hierarchy display and make the second project's actual folder hierarchy appear instead of repeated parent folders; verify the behavior after reopening the solution as a comparison.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.