razor pages streamreader path code example
Example: c# mvc get current directory
string path = ControllerContext.HttpContext.Server.MapPath("~/_xslt/example.xslt");
...
string path = ControllerContext.HttpContext.Server.MapPath("~/_xslt/example.xslt");
...