我的 MS Visual C# 程序正在编译和运行得很好。我关闭 MS Visual C# 以开始做其他生活中的事情。
我重新打开它并(在做任何其他事情之前)转到“发布”我的程序并收到以下错误消息:
Program C:\myprogram.exe 不包含适用于入口点的静态“Main”方法
嗯?是的,它确实......而且一切都在 15 分钟前工作。当然,我可以相信我在关闭之前不小心撞到了什么或做了什么……但是什么?我该如何解决这个问题?
我的 Program.cs 文件如下所示:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
namespace SimpleAIMLEditor
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new mainSAEForm());
}
}
}
......那里有一些评论。没有其他错误。
帮助?