Without installing Intellisense in Razor after installing MVC 4 - Tried various solutions

I recently installed MVC 4 on VS2010, but it seems like I sometimes lose my intellisense. I tried installing MVC 4 again the other day, but still no luck getting it back. This is my current Web.config in my project:

<appSettings> <add key="webpages:Version" value="2.0.0.0" /> //I've also tried setting it to 1.0.0.0 <add key="webpages:Enabled" value="false" /> <add key="PreserveLoginUrl" value="true" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> 

This is my Web.config in the My Views folder:

 <system.web.webPages.razor> <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <pages pageBaseType="System.Web.Mvc.WebViewPage"> <namespaces> <add namespace="System.Web.Mvc" /> <add namespace="System.Web.Mvc.Ajax" /> <add namespace="System.Web.Mvc.Html" /> <add namespace="System.Web.Optimization"/> <add namespace="System.Web.Routing" /> </namespaces> </pages> </system.web.webPages.razor> 

Solutions:

  • Reinstall MVC 4
  • Change <add key="webpages:Version" value="2.0.0.0" /> to <add key="webpages:Version" value="1.0.0.0" />
  • Change <add key="webpages:Version" value="1.0.0.0" /> back to <add key="webpages:Version" value="2.0.0.0" />
  • Restarting new VS instances after changing the settings above
+4
source share
1 answer

Delete everything except folder 11.0 and it should fix the problem. % AppData% \ Roaming \ Microsoft \ VisualStudio \

+1
source

Source: https://habr.com/ru/post/1446535/


All Articles