Additional fixes
This commit is contained in:
@@ -15,6 +15,10 @@ namespace URLNotesGrabberCORE
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// Reset console color on exit (including Ctrl+C)
|
||||
Console.CancelKeyPress += (s, e) => Console.ResetColor();
|
||||
AppDomain.CurrentDomain.ProcessExit += (s, e) => Console.ResetColor();
|
||||
|
||||
IConfiguration config = new ConfigurationBuilder()
|
||||
.SetBasePath(Directory.GetCurrentDirectory())
|
||||
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
|
||||
|
||||
Reference in New Issue
Block a user