I have a solution that contains few projects. The problem is that when I want to open just one of the projects by clicking on the specific .csproj file, it opens all the solution.
How can I open just one project?
Thanks.
Answers. Click on File -> Open Web Site... and choose the folder where you unzipped those files.
Copy the project folder into separate folder, open the . csproj file, press CTRL + S , it will open the save dialog and you will save the . sln file. That is it.
Open Visual Studio. On the start window, select Open a project or solution. Visual Studio opens an instance of File Explorer, where you can browse to your solution or project, and then select it to open it.
To add an existing project to a solutionIn Solution Explorer, select the solution. On the File menu, point to Add, and click Existing Project. In the Add Existing Project dialog box, locate the project you want to add, select the project file, and then click Open. The project is added to the selected solution.
You can create a new solution, and add this project to the solution. Then this project will have a solution of it's own.
It's a hack but rename the .sln file to some other extension temporarily, then double click the csproj. Visual Studio seems to have intellismarts about detecting solutions.
The only way I have been able to do this is to remove the project from the main solution and save it and close it.
You should now be able to open the solution and the project file independently.
Note: opening the csproj file will create a new solution for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With