As a variation on other answers & comments, this worked for me:
Set the file's "Build Action" property to "Page".
Build (problem gone - but...:)
Set the file's "Build Action" property to "Resource".
Build
Problem still gone!
Seems like a VS bug to me.