CS5001程序不包含适用于入口点的静态“主”方法

编程入门 行业动态 更新时间:2024-10-27 01:24:32
本文介绍了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程序不包含适用于入口点的静态“主”方法

本文发布于:2023-11-15 12:36:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1594497.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:适用于   静态   不包含   入口   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!