C# startup project

  • Thread starter Thread starter Wendy Elizabeth
  • Start date Start date
W

Wendy Elizabeth

I have a question about the startup code in C#.Net 2008. I have not looked at
C#.net code in several years and now I have a c#.sln project that I need to
work with.

I am trying to find where the code actually starts. I found the startup
project folder.
These project contains lots of C# modules. Can you tell me how I can tell
where the code actually starts in the startup project? Would I look for a
main.cs file?
Should I just step through the code to see where the application actually
starts? If so, what should I do to make certain this code will not actually
run the production application?
 
I have a question about the startup code in C#.Net 2008. I have not looked at
C#.net code in several years and now I have a c#.sln project that I need to
work with.

I am trying to find where the code actually starts. I found the startup
project folder.
These project contains lots of C# modules. Can you tell me how I can tell
where the code actually starts in the startup project? Would I look for a
main.cs file?
Should I just step through the code to see where the application actually
starts? If so, what should I do to make certain this code will not actually
run the production application?

Tt's usually inside the Program.cs file. If it's not in there, open the
properties for the project file and see "Startup object" under
"Application".
 
Tt's usually inside the Program.cs file. If it's not in there, open the
properties for the project file and see "Startup object" under
"Application".

In the "startup object", find the method called "Main".
 
I have a question about the startup code in C#.Net 2008. I have not looked at
C#.net code in several years and now I have a c#.sln project that I need to
work with.

I am trying to find where the code actually starts. I found the startup
project folder.
These project contains lots of C# modules. Can you tell me how I can tell
where the code actually starts in the startup project? Would I look for a
main.cs file?
Should I just step through the code to see where the application actually
starts? If so, what should I do to make certain this code will not actually
run the production application?

Find which project has an EXE file and in that project search for
Main method.

Arne
 
Back
Top