Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open solution file in Visual Studio Code

I have installed the Visual Studio Code on Windows. When I try to open a solution file in VS Code it opens the solution file, instead of opening all projects in solution. Is there a way to open existing project solutions in VS Code?

like image 918
Yousuf Avatar asked Apr 30 '15 15:04

Yousuf


People also ask

How do I open a VS Code solution file?

You can open any solution, project, folder or file in Visual Studio Code by simply right-clicking it in Solution Explorer and select Open in Visual Studio Code.

How do I open a solution in Visual Studio?

Open Visual Studio. On the start window, select Create a new project. On the Create a new project page, enter blank solution into the search box, select the Blank Solution template, and then select Next.

Can VS Code open SLN files?

You can enable omnisharp integration and vscode-solution-explorer will open the same . sln file you open with Microsoft extension.


2 Answers

When you open a folder in VSCode, it will automatically scan the folder for typical project artifacts like project.json or solution files. From the status bar in the lower left side you can switch between solutions and projects.

like image 89
Benjamin Pasero Avatar answered Oct 21 '22 15:10

Benjamin Pasero


Use vscode-solution-explorer extension:

This extension adds a Visual Studio Solution File explorer panel in Visual Studio Code. Now you can navigate into your solution following the original Visual Studio structure.

https://github.com/fernandoescolar/vscode-solution-explorer

enter image description here

Thanks @fernandoescolar

like image 21
George Paoli Avatar answered Oct 21 '22 15:10

George Paoli