Is there any easy (built in) way in an asp.net mvc view to get the absolute path of a file in the content folder?
At the moment I\'m using
@Url.Cont
This will generate an absolute url to an image (or file)
Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/Content/images/logo.png")
This works in Asp.net Core
Context.Request.Scheme + "://" + Context.Request.Host + Url.Content("~/images/logo.png")