Usually this is done by simply adding [STAThread]
on the Main
method - However with new projects there is none of that?
When i try to set my own program entry point like this:
class Program
{
[STAThread]
static void Main(string[] args)
{
var application = new App();
application.Run();
}
}
it says that there is more than one program entries found. So yeah - with old .net wpf this worked, how to do it with netcore3/net5+ ?