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

后端 未结 5 1438
南笙
南笙 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条回答
  •  孤街浪徒
    2021-02-05 00:18

    You may also see this even though your build actions are set correctly. For example, if you start your project up as an Application, and then later switch it to be a Class Library. In which case you must also remember to delete App.xaml (and the corresponding App.cs).

提交回复
热议问题