0

I tried to migrate an web application from .net 4.7 to net 5. How can i find equivalent HostingEnvironment.MapPath? But MapPath doesn't exist in net 5?

best regards

ProgrammingLlama
  • 36,677
  • 7
  • 67
  • 86
madness
  • 1
  • 2
  • 3
    Does [this](https://stackoverflow.com/questions/49398965/what-is-the-equivalent-of-server-mappath-in-asp-net-core) answer your question? – ProgrammingLlama Jun 19 '21 at 15:53
  • @Llama no. What i want to Maps a virtual path to physical path on server. – madness Jun 19 '21 at 16:02
  • See following : https://stackoverflow.com/questions/49398965/what-is-the-equivalent-of-server-mappath-in-asp-net-core – jdweng Jun 19 '21 at 17:27
  • [HostingEnvironment Equivalent For MapPath](https://forums.asp.net/t/2005166.aspx?HostingEnvironment+Equivalent+For+MapPath) • [What is the difference between Server.MapPath and HostingEnvironment.MapPath?](https://stackoverflow.com/questions/49398965/what-is-the-equivalent-of-server-mappath-in-asp-net-core) –  Jun 19 '21 at 23:37

0 Answers0