程序不包含适合的切入点静态“主”的方法 [英] Program does not contain a static 'Main' method suitable for an entry point

查看:166
本文介绍了程序不包含适合的切入点静态“主”的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然我的整个项目停止编译所有,显示了以下消息:

Suddenly my whole project stopped compiling at all, showing the following message:

计划path_to_obj_project_folder'不包含一个静态的主
  方法适合的切入点。

Program 'path_to_obj_project_folder' does not contain a static 'Main' method suitable for an entry point

我做任何更改项目性质,只是增加了一些课,有些感动其他类到文件夹中。它的一个WPF应用程序的项目,所以它应该是一切OK。入口点是应该的,文件App.xaml中没有被修改所有:(

I made no changes to project properties, just added some classes, moved some other classes into folders. Its an WPF Application project so it should be all OK. Entry point is where it should be, file App.xaml was not modified at all :(

我应该怎么做,使之重新工作?

What should I do to make it work again?

推荐答案

检查的的App.xaml 的属性。是生成操作还是 ApplicationDefinition

Check the properties of App.xaml. Is the Build Action still ApplicationDefinition?

这篇关于程序不包含适合的切入点静态“主”的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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