microsoft / microsoft/vscode-dotnettools

[BUG] Creating New/Adding projects from subfolders creates solution folders

Open
#564 1 comment 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

In Visual Studio, when we create new/add existing projects from subfolders, the project opens directly without creating solution folders in solution Explorer.

But In VS Code, it is creating solution folders for each subfolder on the disk.

Creating solution folder might help in some scenarios but not matching with Visual Studio,
For Example: Having a solution folder allow us to create/open projects with identical names, that also only works in Visual Studio

So, there is inconsistency in how we manage projects in Visual Studio and Visual Studio Code.

Steps To Reproduce

Create New Project in a subfolder or Add Existing Project from a subfolder.

Expected Behavior

As this looks like a feature not a bug in one way. I'm not able to decide which one is correct. (Visual Studio or VS Code)

Environment Information
  • OS: Windows 11
  • VS Code Version: 1.82.2
  • Extension: C# Dev Kit v0.4.10

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 creating or adding a project from a subfolder in VS Code with C# Dev Kit, then compare the resulting solution folders with Visual Studio. No source file or test is identified; done requires a documented decision and matching behavior for the two workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.