I also had to change the Text-Editor settings to make VS recognize HTML5 controls (for others that come here via Google, like me).
In VS, go to Tools> Options and select TextEditor / HTML / Validation in the left pane, then select HTML5.
source share