MVC 3 Visual Studio 2010 Razor Model intellisense not working

Since I updated my projects for VS 11, I cannot get myMMEL intellisense to work in any version of Visual Studio (2010 or 11). I tried to return the .csproj file to remove VS 11 links, but to no avail. Another MVC 3 Razor project works just fine. Does anyone experience this?

+1
source share
2 answers

I found this article that touched on my issue.

EDIT:

It seems that some combination of installing VS 11 and some tool updates caused this problem. I was lucky and managed to get the following error message:

The type System.Web.Mvc.ModelClientValidationRule exists in both c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.O\Assemblies\System.Web.WebPages.dll and c:\Program Files (6)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll 

After some digging, I deleted the removal of โ€œMicrosoft ASP.NET Web Pages 2 - Visual Studio 2010 Toolsโ€, with the result that everything worked. Of course, it would be better to remove "Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" instead, but this is working at the moment.

I found a complete lack of information on the Internet about this type of problem, so I put it here for posterity.

0
source

Doesn't work in both versions of Visual Studio it smells like a setup, maybe a little messed up. My first step would be to try to restore the installation of Visual Studio 2010 and see if the Intellisense behavior returns only for 2010.

  • Control Panel
  • The installing and deleting of programms
  • Visual studio 2010
  • Select Repair from the menu.

If this works, you can be happy with the returned intellisense or try the same steps for Visual Studio 11 and hope that it fixes it for both. But if the 2011 installation is to blame, then most likely she will immediately knock them both out.

0
source

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


All Articles