public static string Content(IBundle bundle, string url) { AssertUtility.ArgumentNotNull(bundle, "bundle"); AssertUtility.ArgumentHasText(url, "url"); while (url.StartsWith("~") || url.StartsWith("/") || url.StartsWith("\\")) { url = url.Remove(0, 1); } return(Path.Combine(bundle.Location.Replace(WebRootPath, "~\\"), url).Replace("\\", "/")); }