Problems after copying XAML controls from WPF Application to a class library

后端 未结 5 1440
南笙
南笙 2021-02-04 23:50

In the process of refactoring some code, I encountered several build errors such as these:

Library project file cannot specify ApplicationDefinition element.

5条回答
  •  -上瘾入骨i
    2021-02-04 23:56

    The build action on the Xaml control must be changed from ApplicationDefinition to Page (this property can be accessed by right clicking on the control in the Solution Explorer treeview and selecting properties).

提交回复
热议问题