When I create new ASP.NET 4.5 web forms application from vs2012 and update all nuget packages, I receive this error on build:
ASP.NET 4.5
vs2012
nuget
My problem was that the tag was not on the first line of the file. Fixed that and everything worked ok.