In Rider, if I open a folder that has a single .csproj file in it, how do I add a solution? Is there a way to do it inside Rider, like there is in Visual Studio, without resorting to the command line and closing/re-opening?
Looks like you can do this with Rider 2019.1 now.
Go to File -> New -> gives the option to add a new solution.
AFAIK there's no way in Rider to toggle between folder mode and solution mode like you can do in Visual Studio.
The rest depends on what your intention is.
If you opened a folder containing a .csproj with File | Open File or Folder and you realized you were unable to build, debug or run your .NET application in this mode, you should just re-open it with File | Open Solution or Project, pointing Rider to the .csproj file.
If the above is not an issue but you want to take your existing .csproj project and wrap it into a .sln file, then select File | New Solution | Empty Solution, and when the new solution loads, add your existing project to it by right-clicking the solution node in Solution Explorer and selecting Add Existing Project.
© 2022 - 2024 — McMap. All rights reserved.