Had the same issue. Solution was: In Solution explorer right-click problematic xaml file -> Rename to some other name (f.e. EditContactPage2.xaml) ->Enter . After recompiling - no errors. Then this file can be renamed to the previous name in the same way.