[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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
0
BrianMc1958
Asked:
BrianMc1958
  • 4
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Hi BrianMc1958,

Check your project properties for the startup object.

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

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

Bob
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Éric MoreauSenior .Net ConsultantCommented:
It needs to be set to the class you want it to start first
0
 
BrianMc1958Author Commented:
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
0
 
BrianMc1958Author Commented:
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...
0
 
BrianMc1958Author Commented:
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now