0

I have a C# webforms project running in .net 4.6. When I try and publish in debug I get the following error :-

Unknown server tag 'webopt:bundlereference'.

This tag appears in my master page as the following: -

<webopt:bundlereference runat="server" path="~/Styles/css" />

It seems to compile okay, the error only appears when I try to publish

Shazoo
  • 685
  • 12
  • 25

1 Answers1

0

I managed to solve it, I just added this reference at the top of the page:-

<%@ Register assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" %>
Shazoo
  • 685
  • 12
  • 25