Novus
Novus

Reputation: 101

how to set any class as my startup object in visual studio 2012?

i have three classes each having Main fuction inside a single application.i have to set any class as per my requirement as strtup object in c#.it is not providing all three classes as startup object.is there any way to do this?

Upvotes: 0

Views: 3794

Answers (1)

Stewart_R
Stewart_R

Reputation: 14525

Yes, provided your Main() method has the correct signature, you can specify the class as a compiler option:

/main:class

see this link for full instructions:

https://msdn.microsoft.com/en-us/library/x3eht538.aspx

Upvotes: 1

Related Questions