c#入口点问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 00:20:52
提示“F\zhang\新建文件夹\windowsaplllication1\obj\Debug\windowsaplllication1.exe未定义入口点,请各位大侠帮忙,告诉我怎么定义,具体定义在那个未知??

在Program.cs里定义Main();

static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] str)
{
//这里是入口方法
}
}