Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.sln file lost, then how to run a project which has a database connection?

Tags:

c#

asp.net

I have created a project of Online Book Shop like Flipkart but now I lost my .sln file of this project, it has a database connection so how can I create a new .sln file and run my project??

I tried to make blank .sln file and want to add all files of my project but failed to do that so anyone has a solution share.....

like image 757
Purbendu Avatar asked Jul 17 '13 06:07

Purbendu


People also ask

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

If you have a web project (without a . sln), you must do: Menu File → Open → Web Site... And choose the folder where the project is.

How do I run a .sln file in Visual Studio code?

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.


1 Answers

Go to file-> New Project in Visual Studio. Then go to "Other Project Types"-> "Visual Studio Solutions". You should see "Blank Solution". Just create a blank solution. Once you have that right click on the solution and go to "Add"->"Existing Project" and select your projects.

like image 193
nerdybeardo Avatar answered Sep 23 '22 20:09

nerdybeardo