我想我在解决方案资源管理器中删除了一些东西(意外)。现在我得到了这个错误。当我启动程序时,我得到了一次创建的弹出框。
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程序不包含适用于入口点的静态“主”方法
发布评论