我应该如何从这个丢失的program.cs错误中恢复 [英] how shall i recover from this missing program.cs error

查看:136
本文介绍了我应该如何从这个丢失的program.cs错误中恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行时出现此错误:

错误是program.cs文件丢失,删除或重命名

我没有对program.cs文件进行任何更改.

有人请帮助我!

While executing I got this error:

Error is program.cs file is missing or deleted or renamed

I didn''t do any changes in the program.cs file.

Someone please help me!

推荐答案

这可能是您的命名空间存在问题.请检查主窗体和Program.cs的命名空间.
This might be a problem with your namespace. Please check the namespace of your main form and the Program.cs.


请确保磁盘上有 program.cs 文件并已加载到项目中. br/> 我怀疑原因是Main()方法应该在那里.如果不是,则写一个.
如果另一个class中确实有另一个Main()方法,则编辑项目的属性,以将另一个class设置为项目的起点.
Make sure you have a program.cs file on disk and loaded in your project.
I suspect the reason is that a Main() method should exist there. If not, then write one.
If you do have another Main() method in another class, then edit your project''s properties to set the other class as the project''s starting point.


这篇关于我应该如何从这个丢失的program.cs错误中恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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