I need to access IHostingEnvironment.ContentRootPath inside Program.cs -> Main method. I followed some answers from the internet but nothing comes to my rescue.
My code looks like the following; i can declare a variable inside the Main method of type IHostingEnvironment but i am not sure what should i initialize it with.
public static void Main(string[] args)
{
IHostingEnvironment env;
}