您的位置:首页 > 产品设计 > UI/UE

WPF error: does not contain a static 'Main' method suitable for an entry point

2013-07-10 15:41 447 查看



WPF error: does not contain a static 'Main' method suitable for an entry point

does not contain a static 'Main' method suitable for an entry point
在Visual Studio中删除App.xaml从别的位置拷贝一个后会出现的编译错误,原因在于
默认的App.xaml在属性页中的Build Action 是ApplicationDefinition,而拷贝过来的文件默认不是这样的。这个Build Action 会为我们生成所需的静态Main方法,这样程序就能够正确的被编译了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐