Getting Project Root Path In Controller ASP.NET MVC?

后端 未结 1 1629
失恋的感觉
失恋的感觉 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)
提交回复
热议问题