[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
【[WPF]The type name ‘App’ does not exist in the type ' ...' 的问题】 
问题描述:当创建一个namespace名与class名相同的solution并编译时,可能遇到报错“The type name ‘App’ does not exist in the type \'...\'”,如下图所示:

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

文章图片

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

    推荐阅读