Pregunta

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 ->

enter image description here

And then, right click on the solution :

enter image description here

OR

Select the solution in the Solution explore and then File -> Save as :

You will get the .sln location

¿Fue útil?

Solución 2

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top