.net - Where do I reference System.Web.Mvc.dll from? -


in 1 of class libraries, wish make single call system.web.mvc.server.mappath(string path).

if install nuget package microsoft.aspnet.mvc class library, have first install microsoft.aspnet.webpages package well, may have further dependencies.

i want single dll system.web.mvc.dll since server class in there.

i tried referencing dll path:

c:\program files (x86)\microsoft asp.net\asp.net web stack 5\packages\microsoft.aspnet.mvc.5.2.3\lib\net45

but dll not have server class in system.web.mvc namespace.

and not see dll anywhere else on machine.

where can reference dll from? used easy in old days. , stayed easy if wanted reference mvc till 2010.

there no need have system.web.mvc-assembly in project use server.mappath. need reference system.web in project , can do

var path = system.web.httpcontext.current.server.mappath("default.aspx"); 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -