Home > Archive > Visual Studio > February 2006 > newbie: Why is compiler looking for main method?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
newbie: Why is compiler looking for main method?
|
|
|
| After creating a solution and adding some classes, I tried to layer my
solution with separate UI, DA, BL Projects
Solution MySolution
MyProject_DA
MyProject_BL
MyProject_UI
What I did was right click on MySolution and added a couple new empty
projects for each layer and then copied and pasted some classes from the
original single project into the new layered projects.
Why am I getting this error and how do I fix it?
Error 2 Program 'C:\Documents and Settings\Administrator\My Documents\Visual
Studio 2005...
.... .exe' does not contain a static 'Main' method suitable for an entry
point MyProject_DA
Thanks in advance.
| |
|
| I figured it out:
Right-click on project in solution explorer, select properties, change
Output type to Class Library.
|
|
|
|
|