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方法,这样程序就能够正确的被编译了。
相关文章推荐
- WPF error: does not contain a static 'Main' method suitable for an entry point
- WPF error: does not contain a static 'Main' method suitable for an entry point
- WPF error: does not contain a static 'Main' method suitable for an entry point
- Error: does not contain a static 'Main' method suitable for an entry point [wpf]
- WPF error: does not contain a static 'Main' method suitable for an entry point
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .pn
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels
- HHC4003: Warning:The following option line does not contain an '=' character separating the option and its value: 锘縖OPTIONS]
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- does not contain handler parameter named 'method'.错误
- Bean property 'productService' is not writable or has an invalid setter method. Does the parameter t
- does not contain handler parameter named 'method'. This may be caused by whitespace in the label text
- Microsoft.Office.InfoPath.View' does not contain a definition for 'ExecuteAction
- does not contain handler parameter named 'method'
- does not contain handler parameter named 'method'
- does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.异常及其解决方案
- does not contain handler parameter named 'method' 异常
- Custom control-- Error:System.Web.UI.UserControl' does not contain a definition for 'LoadCatalog ' a
- does not contain handler parameter named 'method'. This may be caused by whitespace in the label text错误