Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open a project without a .sln file in Visual Studio?

Tags:

I was writing this program all in Vim and now I'm thinking of moving to Visual Studio, but since I didn't start in Visual Studio in the first place, there is no .sln file to open from. How should I open such a project in Visual Studio?

like image 227
Tengyu Liu Avatar asked Jul 18 '13 01:07

Tengyu Liu


People also ask

Is SLN file necessary?

As far as I'm aware, the SLN is a 100% Visual Studio Tooling concept. You can still create applications, run/compile/publish them without this file.

How do I open a SLN file without Visual Studio?

Solution 1 Basically a solution file can be opened by using appropriate IDE (development enviornment) For Example you need visual studio to open . net related sln file. You can also use NOTEPAD to just open and read the content of sln file.

Where is the .SLN file?

sln" file is created in the parent folder, along with the hidden ". vs" folder.


2 Answers

If you have a web project (without a .sln), you must do:

Menu FileOpenWeb Site...

And choose the folder where the project is.

like image 186
César Javier Mendoza Avatar answered Oct 12 '22 03:10

César Javier Mendoza


If a *.csproj file exists, you can build a new solution by Visual Studio at first. Next, you can open this *.csproj file in Visual Studio.

like image 38
dotnetfly Avatar answered Oct 12 '22 03:10

dotnetfly