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.

Enable `dotnet sln` to add SLN-level files

See original GitHub issue

I wasn’t able to add SLN-level files to a .sln file with the commandline tools. VS enables me to do this.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:18
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

35reactions
samsmithnzcommented, Dec 31, 2021

Another vote for this. Having the ability to add existing files to the solution would be very useful. Even something a call for each separate file would work for me:

dotnet sln add --file 'README.MD' dotnet sln add --file '.github/workflows/workflow.yml'

9reactions
dasMullicommented, Apr 18, 2019

I’d be a happy uer of the feature, being able to add all my build.props / targets and Directory.Build.props of various folder levels to a solution (including automatic solution folders) without dying of age using the VS UI.

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 >
Creating and editing solution files with the .NET CLI
In this post, I show how to manage sln files with the .NET command line interface (CLI). See how to create sln files,...
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 >
How to add all projects to a single solution with dotnet sln?
For Windows, open PowerShell and run this command to add all projects to the solution file: dotnet sln add (ls -r **/*.csproj).
Read more >
Manage .NET (C#) solutions, projects, and files
Add a new project via command line · Press Ctrl Shift 0` or choose View | Terminal from the menu to open the...
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