Project cannot be published. Main file has validation errors

Do you have single Main.xaml file or any other .xaml file in the same project folder?