Can’t specify the ‘async’ modifier on the ‘Main’ method of a console app

I am new to asynchronous programming with the async modifier. I am trying to figure out how to make sure that my Main method of a console application actually runs asynchronously. class Program { static void Main(string[] args) { Bootstrapper bs = new Bootstrapper(); var list = bs.GetList(); } } public class Bootstrapper { public … Read more

How can I get the application’s path in a .NET console application?

How do I find the application’s path in a console application? In Windows Forms, I can use Application.StartupPath to find the current path, but this doesn’t seem to be available in a console application. 28 s 28 System.Reflection.Assembly.GetExecutingAssembly().Location1 Combine that with System.IO.Path.GetDirectoryName if all you want is the directory. 1As per Mr.Mindor’s comment: System.Reflection.Assembly.GetExecutingAssembly().Location returns … Read more