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 add` should allow non-project files to be added to the solution

See original GitHub issue

In 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. image

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

github_iconTop GitHub Comments

6reactions
forensicmikecommented, Nov 4, 2022

Just throwing my hat in the ring as 😱 that this is still not possible in 2022

3reactions
KathleenDollardcommented, Jun 15, 2021

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?

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

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