Link to home
Start Free TrialLog in
Avatar of Rajesh Mehra
Rajesh Mehra

asked on

Uno Platform Error CS5001 Program does not contain a static 'Main' method suitable for an entry point

While using my UWP code on Uno Platform for developing app which works across Windows 10 / 8 / 7
I get Error code  CS5001   Program does not contain a static 'Main' method suitable for an entry point
found this link but unable to resolve issue
https://stackoverflow.com/questions/63917298/error-cs5001-program-does-not-contain-a-static-main-method-suitable-for-an-en
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

many times when you start a new project you get a default main() function.. C# requires this.
you can add an almost empty main function that simply calls you starting  point

i.e.

static public yabbadbba(striping do)
{
l// ots of code here

}

static void main{} {
yabbadabba()
}

Open in new window

This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.