1. 程式人生 > >[WPF]The type name ‘App’ does not exist in the type '...'的問題

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

-s tar type quest blog alt http 再次 ges

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 '...'的問題