I have MVC assemblies here:
C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies
and
ASP.NET Web Pages assemblies here:
C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\
These assemblies are not installed into the GAC (I’ve checked with gacutil -l), but VS shows all of them in “Add Reference” dialog.
When I run site on IIS these assemblies are also loaded, but path to them is not specified in Web.config:
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
How these assemblies are found?
It seems that assemblies are installed into the GAC:
Just use the right gacutil, now there are two of them — one for 1.1/2.0/3.0/3.5/3.5SP1 and another for 4.0/4.5.