CS5001程序不包含适用于入口点的静态“主”方法 [英] CS5001 Program does not contain a static 'Main' method suitable for an entry point

查看:83
本文介绍了CS5001程序不包含适用于入口点的静态“主”方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我在解决方案资源管理器中删除了一些东西(意外)。现在我得到了这个错误。当我启动程序时,我得到了一次创建的弹出框。

I think I deleted something in the solution explorer(on accident). Now I get this one error. When I start the program I get the popupbox that I had create once.

我的代码的一小部分是:

A little part of my code is:

推荐答案


我想我在解决方案资源管理器中删除了一些东西(在事故)。现在我得到这一个错误。

I think I deleted something in the solution explorer(on accident). Now I get this one error.

当你看到在解决方案资源管理器窗口中的项目,它是否显示一个名为Program.cs的源文件?
这是主函数通常位于的




如果你删除了它,你将不得不恢复它或重新创建它。 />


请注意,您应该始终说明您正在使用的Visual Studio版本或者
Visual C#。



- Wayne

When you look at the project in the Solution Explorer window, does it
show a Source file named Program.cs? That is where the Main function is
usually located.

If you deleted it you will have to recover it or recreate it.

Note that you should always state which version of Visual Studio or
Visual C# you're using.

- Wayne


这篇关于CS5001程序不包含适用于入口点的静态“主”方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆