Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I had deleted the App.xaml file and added new class named App.cs as the entry point.
C#
class App : Application
    {
        [STAThread()]
        static void main()
        { 

        }
    }

But when i compile an error had shown: d:\Projects\....\obj\x86\Debug\Test.exe does not contain a static 'Main' method suitable for an entry point.
How to solve this?
Posted
Updated 31-Jul-15 0:01am
v3
Comments
stibee 31-Jul-15 5:56am    
Why did you delete this? http://stackoverflow.com/questions/25371737/what-is-the-entry-point-of-a-wpf-application
Michael_Davies 31-Jul-15 5:57am    
Quite a bit on this subject on:

http://stackoverflow.com/questions/9607702/does-not-contain-a-static-main-method-suitable-for-an-entry-point
Alan N 31-Jul-15 7:24am    
Don't forget that C# is a case sensitive language. Main() and main() are not the same.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900