问题描述
我的微软的Visual C#程序被编译并运行就好了。
我关闭微软的Visual C#中去,并且在生活中做其他的事情。
My MS Visual C# program was compiling and running just fine.I close MS Visual C# to go off and do other things in life.
我重新打开它,并(在做任何事情之前)到发布我的计划,并得到了以下错误消息:
I reopen it and (before doing anything else) go to "Publish" my program and get the following error message:
计划C:\\ myprogram.exe不包含适合的切入点静态主方法
咦?是它...它是所有工作15分钟更早。当然,我可以相信,我不小心碰到了什么东西或做了什么之前,我收起来......不过什么?我该如何解决呢?
Huh? Yes it does... and it was all working 15 min earlier. Sure, I can believe that I accidentally hit something or done something before I closed it up... but what? How do I troubleshoot this?
我的Program.cs文件看起来像这样:
My Program.cs file looks like this:
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());
}
}
}
...而且里面还有一些意见。有没有其他的错误。
...and there are some comments in there. There are no other errors.
帮助?
推荐答案
上设置了编译文件的属性?
Are the properties on the file set to Compile?
这篇关于故障排除和QUOT;程序不包含一个静态的“主”的方法和QUOT;当它显然不......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!