`dotnet sln add` should allow non-project files to be added to the solution
See original GitHub issueIn my company we often have a small number of files at the solution level for each solution. These include, for example:
- .tfignore/.gitignore file
- .editorconfig
I can’t find anyway to add to these to a solution. The following image shows the result I would like in visual studio.
I would propose a command format such as
dotnet sln <SLN_FILE> add file [file1 [file2 [...]]]
for adding items to a ‘Solution Items’ folder (as above) and
dotnet sln <SLN_FILE> add --directory=MyFolderName file [file1 [file2 [...]]]
for adding items to a custom named folder
Issue Analytics
- State:
- Created 5 years ago
- Reactions:25
- Comments:6 (1 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 >dotnet cli creating folders within projects doesn't get added ...
The only thing that you can do is add a project into a particular virtual folder within the solution: dotnet sln add path/to/project.csproj ......
Read more >`dotnet sln add` should allow non-project files to be added ...
In my company we often have a small number of files at the solution level for each solution. These include, for example:.
Read more >Add All Projects to Solution with dotnet CLI | Blog
This will recursively find .csproj files in any subfolder and will add them to the solution using the dotnet sln add command. With...
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 >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
Just throwing my hat in the ring as 😱 that this is still not possible in 2022
We had a comment on Twitter on this https://twitter.com/peval27/status/1404920313289269248?s=20
Anyone know why we do not already do this?