C# startup project

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?
 
J

Jackie

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".
 
J

Jackie

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".
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top