程序不包含合适的主体'入口点的方法
我不小心删除了项目的自动生成的主要入口点。问题在于我没有意识到这一点,并保存了更改和退出程序。现在,即使我创建了一个新类和新的主方法,我也有相同的错误。错误指向CSC文件,但是单击时,它不会打开Anynthin。 我记得我以某种方式反对CSC文件并删除了其中的所有内容。 如果您有任何想法或建议,请回答! 谢谢你!
I accidentally deleted the auto generated main entry point of my project. The problem is that I did not realised that and saved the changes and exit de program. Now I have the same error even if I create a new class and a new Main method. The error points to CSC file, but it won' t open anynthin when clicked.
I remember that I somehow oppened the CSC file and deleted all the content inside.
If you have any ideas or suggestion please respond!
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个新项目即
只需
如果是WPF项目,请复制XAML代码
Just create a new Project and if you need the Code of the Program where the Error was copy it and paste it in the new Project
Edit:
If it's an WPF Projects copy the XAML codes