App.xaml file does not get parsed if my app does not set a StartupUri?

后端 未结 4 2075
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 01:07

Background: I\'m creating a WPF app using MVVM, and using a DI container to build my ViewModels

My App.xaml looks like this:



        
4条回答
  •  半阙折子戏
    2020-11-30 01:51

    I've run into a similar/this same issue. There's a VS code generation bug where the code necessary to connect to the rest of the program sometimes is not inserted when contains only one entry and does not have a StartupUri attribute.

    Details: http://bengribaudo.com/blog/2010/08/19/106/bug-single-application-resources-entry-ignored (disclaimer--link points to my blog)

提交回复
热议问题