In the process of refactoring some code, I encountered several build errors such as these:
Library project file cannot specify ApplicationDefinition element.
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).