程序不包含合适的主体'入口点的方法

发布于 2025-02-13 02:13:10 字数 322 浏览 2 评论 0原文

我不小心删除了项目的自动生成的主要入口点。问题在于我没有意识到这一点,并保存了更改和退出程序。现在,即使我创建了一个新类和新的主方法,我也有相同的错误。错误指向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!
This is the error message I get

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请远离我 2025-02-20 02:13:10

创建一个新项目即

只需
如果是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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文