diff --git a/CallbackHandler/Program.cs b/CallbackHandler/Program.cs index 763aae1..4a0c7c6 100644 --- a/CallbackHandler/Program.cs +++ b/CallbackHandler/Program.cs @@ -31,7 +31,7 @@ public static void Main(string[] args) public static IHostBuilder CreateHostBuilder(string[] args) { //At this stage, we only need our hosting file for ip and ports - FileInfo fi = new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location); + FileInfo fi = new(typeof(Program).Assembly.Location); IConfigurationRoot config = new ConfigurationBuilder().SetBasePath(fi.Directory.FullName) .AddJsonFile("hosting.json", optional: true)