Solutions and Projects

J

JSheble

I don't know if this is the correct newsgroup, if not, please excuse me...
When a project is part of a solution, is there anyway to just open the
project, bypassing the solution? When I try to open a project, it always
opens the whole solution, which is fine is some cases, but in others where
there are 3-4 projects in a solution, I'd much rather just deal with the
single project. I supposed I can create a new solution, then add an
existing project to it, but this seems a bit cumbersome...

Thanx
 
G

Guest

when you open a project (*.csproj) it open only the project, if you open
(*.sln) youre opening the solution, this opens all the projects that are
included in the solution...

every time i open a *.csproj this open only the project, and when i want to
run it, it ask me to create a solution file...

salute
 
J

JSheble

Whenever I open a project (*.csproj), if it's part of a solution, it opens
the whole solution, which I do not want it to do
 
G

Guest

ooo... thats weird...



JSheble said:
Whenever I open a project (*.csproj), if it's part of a solution, it opens
the whole solution, which I do not want it to do
 
G

Guest

This is happening because your projects are probably living inside the folder
where the solution lives i.e.

MyFolder
--> Solution Folder
----> Project 1
----> Project 2

If you try to open project1 or two and they are part of the solution then
visual studio will traverse up the directory structure (it seems) and find
the solution and open it. To stop this you should save your projects not
under the location where the solution file is stored i.e.

My Folder
--> Solution X
--> Project 1
--> Project 2

This way when you open Project1 or Project2 and they are part of the
solution it will not open.

Hope that helps.
Mark.
 
J

JSheble

It does, and that's exactly how my folder structure falls... made the most
sense directory wise... now if there was an option to prevent the directory
traversing...

Thanx...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top