PC Review


Reply
Thread Tools Rate Thread

How to do I specify which main to use in a project

 
 
Tony Johansson
Guest
Posts: n/a
 
      3rd Apr 2009
Hello!

I have a project where I have several files with a main method.
I just want to know how I specify which one to use.

//Tony


 
Reply With Quote
 
 
 
 
Pavel Minaev
Guest
Posts: n/a
 
      3rd Apr 2009
On Apr 3, 8:02*am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
> I have a project where I have several files with a main method.
> I just want to know how I specify which one to use.


In Visual Studio, you go to project properties, "Application" tab, and
choose the class you want from the "Startup object" dropdown.

When compiling .cs files from command line, you use the /
main:<classname> switch.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invoking Console Application's Program.Main from another project Shikari Shambu Microsoft C# .NET 11 22nd Jul 2009 01:17 AM
How to run an access project which start from the main menu =?Utf-8?B?RGl5YW5h?= Microsoft Access Forms 1 22nd Nov 2007 03:44 AM
7 main steps used in completing a desktop publishing project =?Utf-8?B?UGVubnkgRmlzaGVyKGxhZHltb29uZ29kZGVzcyk= Microsoft Word Document Management 1 15th Feb 2007 03:27 AM
Main page blocked something about core-project =?Utf-8?B?TGVl?= Microsoft Frontpage 5 1st Nov 2005 11:31 PM
Mars Simulation Project 2.75 Main Gordon Darling Freeware 3 24th Apr 2004 12:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:48 PM.