Prathap

Prathap

  • NA
  • 38
  • 32.4k

does not contain a static 'Main' method WPF

Jul 31 2015 6:11 AM
I had deleted the App.xaml file and added new class named App.cs as the entry point. The buildAction property is compile.
 
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? 

Answers (1)