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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Brian,
When you created your project, what project type did you select?
Bob
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
ASKER
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
--The UnLearnedOne
ASKER
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...
Again, I'm a total newbie at VS2005 (or VSAnything), so I'm sure I'm missing something obvious...
ASKER
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
Thanks to both of you for your help.
--BrianMc1958
ASKER