Does not contain a static 'main' method suitable for an entry point

前端 未结 26 1698
时光说笑
时光说笑 2020-12-05 12:55

I began organizing my code to day into seperarate .cs files, and in order to allow the methods that work with the UI to continue to do so I would create the .cs code under t

相关标签:
26条回答
  • 2020-12-05 13:20

    Perhaps unintentional, but moving my docker file to the solution folder instead of the project eliminated the error. This was helpful when I still wanted to run the solution independently of docker

    0 讨论(0)
  • 2020-12-05 13:22

    hellow your main class was deleted so add new class that name set as Main.cs and pest that code or if porblem in window so same problem on that

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using Foundation;
    using UIKit;
    
    namespace your_PKG_name.iOS
    {
           public class Application
            {
                // This is the main entry point of the application.
                static void Main(string[] args)
                {
                    // if you want to use a different Application Delegate class from "AppDelegate"
                    // you can specify it here.
                    UIApplication.Main(args, null, "AppDelegate");
    
                }
            }
    }
    
    0 讨论(0)
提交回复
热议问题