Getting Project Root Path In Controller ASP.NET MVC?

后端 未结 1 1630
失恋的感觉
失恋的感觉 2020-12-28 11:41

I am using dotlesscss for my css and I remember how to use that but what I am forgetting is how to get the root project path so that I can generate the full file path to my

1条回答
  •  自闭症患者
    2020-12-28 12:19

    Server.MapPath("~");
    

    or:

    HostingEnvironment.ApplicationPhysicalPath 
    

    0 讨论(0)
提交回复
热议问题