This is something I should really know how to do but I've never figured it out
How can I force Visual Studio to fail a compile based on what would ultimately be compile/syntax errors in ascx/aspx pages?
For example I could put the following into an ASPX page and the site would compile just fine, but obviously fall over if I visited this page;
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<% if (true) { %>
<% if (true) { %>
</asp:Content>