Reputation: 1257
I have to work on a project that I didn't create (Classic situation). Given that where I am working there's no standard where we have to locate the solution, I have no idea where the user before me placed his solution file.
Is there an easy way to find the solution file from a specified project in visual studio ?
EDIT
Based on the answer, here's the easy step to get .sln file location :
If you don't see the solution in the "Solution explorer" :
Tools -> Option ->
And then, right click on the solution :
OR
Select the solution in the Solution explore and then File -> Save as :
You will get the .sln location
Upvotes: 0
Views: 2530
Reputation: 37225
As you open the .sln from VS, select the solution (top-most entry) in Solution Explorer, and then File | Save [...].sln As...
This should open the Save As
dialog in the directory of the current solution.
Edit
Actually, you can see the path of the solution in the Properties window (property "Path") after you select the solution.
Upvotes: 1
Reputation: 34539
No not really. The project doesn't store a link to the solution as a project can be included in many solution files.
If you're just after opening a single file you can actually just save a new solution. It'll create a new solution file sharing the project name. This might be your best course of action. Alternatively have a search on your file system for some.
Upvotes: 2