In the process of refactoring some code I encountered several build errors like these:
Library project file cannot specify ApplicationDefinition element.
The project file contains a property value that is not valid.
How can these errors be resolved?