Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Missing] "Add New file" option on the main Solution #547

Open
dileep-hegde opened this issue Sep 21, 2023 · 7 comments
Open

[Missing] "Add New file" option on the main Solution #547

dileep-hegde opened this issue Sep 21, 2023 · 7 comments
Assignees
Labels
area-templates Experiences around the project/item templates enhancement New feature or request triaged The issue has been triaged
Milestone

Comments

@dileep-hegde
Copy link

There is no option to add new file on the main Solution where sln file exists.

Note: Even if we create the file manually it doesn't show on the solution explorer.

Missing: Add New File.. option on the main Solution.

@microsoft-issue-labeler microsoft-issue-labeler bot added the area-solution Solution explorer label Sep 21, 2023
@dileep-hegde dileep-hegde changed the title Allow "Add New file" option on the main Solution [Missing] "Add New file" option on the main Solution Sep 22, 2023
@Michael-Eng Michael-Eng added the enhancement New feature or request label Sep 22, 2023
@Michael-Eng Michael-Eng self-assigned this Sep 22, 2023
@Michael-Eng
Copy link
Member

Thanks for the feedback. This is outside of the scope of the initial C# Dev Kit but we will consider

@Michael-Eng Michael-Eng added the duplicate This issue or pull request already exists label Sep 22, 2023
@Michael-Eng
Copy link
Member

Dup of #544

@dileep-hegde
Copy link
Author

Thanks.

But @Michael-Eng

I doubt, this is not duplicate of #544, here we are able to create a file in Solution folders but not as expected.

But this issue is about not having options to create a file in the main Solution folder where sln file exists
as well as Solution explorer not recognizing the file if manually created.

Also, dotnet/sdk#9611, shows It is not even possible through dotnet CLI.

But we have this in Visual Studio. Could you please check this again.

@Michael-Eng Michael-Eng reopened this Sep 22, 2023
@Michael-Eng
Copy link
Member

I will leave this opened, but the ability to create files at the solutoin level (while possible in VS) is outside the scope of the initial C# Dev Kit. We can consider it in the future.

@dileep-hegde
Copy link
Author

Thank you for keeping this open. As this is required and useful feature if not "The Most" and is available in Visual Studio.

Moreover, outside of visual studio there is no way this is possible, even with dotnet CLI as mentioned earlier.

So, Kindly, requesting to consider this.

And I think it is safe to remove duplicate tag as I clearly mentioned the difference.

Thanks @Michael-Eng

@timheuer
Copy link
Member

@dileep-hegde -- In VS this creates files in either existing, or will create one, solution folders. I think that's what you are saying, just want to confirm. In VS when you create a file at the solution level it will also create a solution folder if one was not specified...that's the behavior you are looking for right?
image

@timheuer timheuer removed the duplicate This issue or pull request already exists label Sep 25, 2023
@dileep-hegde
Copy link
Author

Hi @timheuer,

Yes. In Visual Studio, when we create a new file at the solution level. It creates a solution folder named "Solution Items" if not specified. Also, we can manually create a solution folder, let's say "Resources". and then add a new/existing file to that solution folder.

Currently in VS Code, Solution Explorer doesn't have a dedicated "Add New File" option at the Solution level. We can only create solution folders manually for the files at the solution level.

So, this issue is raised for missing dedicated "Add New File" option at the Solution level.

  1. It should allow to add a new/existing file at the solution level. Automatically, create a solution folder named "Solution Items" if not specified.
  2. Also, it should hint developer to provide a name for the new solution folder.

Thanks.

@smitpatel smitpatel assigned smitpatel and unassigned Michael-Eng Oct 2, 2023
@smitpatel smitpatel added area-templates Experiences around the project/item templates and removed area-solution Solution explorer labels Oct 2, 2023
@smitpatel smitpatel added this to the Backlog milestone Nov 17, 2023
@smitpatel smitpatel added the triaged The issue has been triaged label Nov 17, 2023
@smitpatel smitpatel assigned timheuer and unassigned smitpatel Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates Experiences around the project/item templates enhancement New feature or request triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants