首页 > 代码库 > [WPF]The type name ‘App’ does not exist in the type '...'的问题

[WPF]The type name ‘App’ does not exist in the type '...'的问题

refer to: https://stackoverflow.com/questions/4480087/wpf-the-type-name-app-does-not-exist-in-the-type-occurs-after-renaming-mai

 

问题描述:当创建一个namespace名与class名相同的solution并编译时,可能遇到报错“The type name ‘App’ does not exist in the type ‘...‘”,如下图所示:

技术分享

问题解决:将namespace与class的名称改为不一样,再次编译,问题即可解决。

[WPF]The type name ‘App’ does not exist in the type '...'的问题