Razor Syntax gives errors in View before compiling (No intellisense)

后端 未结 2 1018
花落未央
花落未央 2021-01-11 18:20

I was going through the list of NuGet Packages and I was updating everything things like bootstrap, jQuery, etc. but while I was doing that, I unthinkingly updated M

2条回答
  •  感动是毒
    2021-01-11 18:41

    I have spent days digging around on this problem and now waiting for my hair to grow back. But alas persistence.

    Visual Studio 2013 Update 4, targetFramework 4.5.1 System.Web.Mvc 5.2.2.0

    Ensure web.config files (in the root directory and view directory(ies)) are utilizing the proper versions for mvc and razor as explained above. However if the razor intellisense problem still exists, begin by checking your installed packages.

    Easiest way is to create a new solution, and install / update packages one by one to identify the problematic packages.

    In my case updating the solution's Webgrease / Modernizr / ANTLRv3 packages via nuget to version 1.6.0 / 2.8.3 / 3.5.0.2 caused all the problems and self-induced male pattern baldness.

提交回复
热议问题