Link to home
Start Free TrialLog in
Avatar of BrianMc1958
BrianMc1958

asked on

EXTREME NEWBIENESS: How to RUN SOMETHING in VS2005?

Dear Experts,

This is a humiliating question to have to post in public, but:

In VS2005, I have my first test project, and I just want to run it.  However, the only "run-type" option I can find is "debug", which just gives me some warnings.

The project currently consists of two classes.  One is basically a suite of utility methods, and the other does nothing but call one of those methods, for testing purposes.  The Main method is, obviously, in the latter.  

When (out of ignorance and desperation) I hit the green triangular "debug" button, it next goes to a warning in one of the utility methods that I am NOT calling.

I had been able to run a "hello, world" class, but now I'm not sure if I used "debug" to do it...

How do I just say "Run, starting with Main"?

Humiliatingly Yours,
BrianMc1958
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianMc1958
BrianMc1958

ASKER

OK.  It says "not set" and the whole page is grayed out.  What did I do wrong?  I TRYING to be a GOOD PERSON!
Brian,

When you created your project, what project type did you select?

Bob
It needs to be set to the class you want it to start first
To TheLearnedOne:  Uh, I was afraid you'd ask that.  I don't recall exactly.  I remember there was an option for something like "library / applet", which I didn't take.  I think I took the default, and I think that was something like "Windows Application".

--The UnLearnedOne
To emoreua:  When I go to Project > Properties, the "startup object" is "not set".  I assume I'm supposed to enter the name of the class containing my "Main" method.  But the whole page is grayed out.

Again, I'm a total newbie at VS2005 (or VSAnything), so I'm sure I'm missing something obvious...
Sorry.  I guess I was still in "debug mode".  I hit "stop", and then I could enter the name of my Main class.  Now VS2005 itself is crashing when I try to run.  Is that progress?  I'm not sure.

Thanks to both of you for your help.

--BrianMc1958