By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,886 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,886 IT Pros & Developers. It's quick & easy.

Two projects, one solution...how to run the second one?

P: n/a
Hello -

Ive got a single "Solution" with two projects. While working with
Project2, when I hit F5 to run and debug, the main form from Project1
loads. What is up with this? I thought that while in the same
solution, the two projects are completely seperate. Obviously not.
Can someone explain what is happening here? And how to I configure it
so that Project2's main form loads when I F5.

Many thanks!

Brian
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
A solution needs to have a single entry point... It can't start two separate
debuggers on two separate projects, at least within the same editor. If you
opened it in 2 separate editors you could do it, but that would just be
dumb.

Usually, when you have multiple projects, you have your main project which
calls functionality within the other projects.
"Brian" <br*********@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Hello -

Ive got a single "Solution" with two projects. While working with
Project2, when I hit F5 to run and debug, the main form from Project1
loads. What is up with this? I thought that while in the same
solution, the two projects are completely seperate. Obviously not.
Can someone explain what is happening here? And how to I configure it
so that Project2's main form loads when I F5.

Many thanks!

Brian

Nov 20 '05 #2

P: n/a
Right-click on the project that you want to start running when you press F5,
and select "Set as Startup Project".

Tom Dacon

"Brian" <br*********@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Hello -

Ive got a single "Solution" with two projects. While working with
Project2, when I hit F5 to run and debug, the main form from Project1
loads. What is up with this? I thought that while in the same
solution, the two projects are completely seperate. Obviously not.
Can someone explain what is happening here? And how to I configure it
so that Project2's main form loads when I F5.

Many thanks!

Brian

Nov 20 '05 #3

P: n/a
Brian,
In addition to CJ's comments you can set which project is the startup
project for the solution.

Right click the project in Solution Explorer and select 'Set as Startup
Project'.

Normally I have a single executable (.exe) in a solution put will have
multiple class libraries.

A solution is just that a complete solution in that it contains all the
projects to solve a problem. So the projects are normally interrelated, such
as a common executable plus all of its class libraries that the executable
needs.

Hope this helps
Jay

"Brian" <br*********@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Hello -

Ive got a single "Solution" with two projects. While working with
Project2, when I hit F5 to run and debug, the main form from Project1
loads. What is up with this? I thought that while in the same
solution, the two projects are completely seperate. Obviously not.
Can someone explain what is happening here? And how to I configure it
so that Project2's main form loads when I F5.

Many thanks!

Brian

Nov 20 '05 #4

P: n/a
Sorry... didn't mean to sound like an a$$hole...
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
A solution needs to have a single entry point... It can't start two separate debuggers on two separate projects, at least within the same editor. If you opened it in 2 separate editors you could do it, but that would just be
dumb.

Usually, when you have multiple projects, you have your main project which
calls functionality within the other projects.
"Brian" <br*********@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Hello -

Ive got a single "Solution" with two projects. While working with
Project2, when I hit F5 to run and debug, the main form from Project1
loads. What is up with this? I thought that while in the same
solution, the two projects are completely seperate. Obviously not.
Can someone explain what is happening here? And how to I configure it
so that Project2's main form loads when I F5.

Many thanks!

Brian


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.