在尝试编译我的 MonoTouch 项目时,我突然开始收到以下错误。
错误 CS5001:程序“MyApp.exe”不包含适用于入口点 (CS5001) (MyApp) 的静态“Main”方法
下面是我的 Main.cs 的样子。
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace MyApp
{
public class Application
{
static void Main (string[] args)
{
UIApplication.Main (args, null, "AppDelegate");
}
}
}
知道我能做些什么来解决这个问题吗?还是我需要创建一个新的解决方案?