In one of my class libraries, I wish to only make a single call to System.Web.Mvc.Server.MapPath(string path).
If I install the NuGet package Microsoft.AspNet.Mvc into that class library, I have to first install the Microsoft.AspNet.WebPages package as well, which may have further dependencies.
I just want the single DLL System.Web.Mvc.dll since the Server class is in there.
I tried referencing the DLL from the path:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45
but that DLL does not have the Server class in the System.Web.Mvc namespace.
And I do not see this DLL anywhere else on my machine.
Where can I reference this DLL from? It used to be so easy in the old days. And it stayed easy if you wanted to reference just MVC till 2010.