Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ASP.NET Core 1.0 Global exception handler in console application (DNX) #5059
How do you catch global exceptions in an asp.net core console application? In previous versions we had AppDomain.CurrentDomain.UnhandledException but this doesn't seem to work in rc1
The above only works in 4.5.1 but not dnxcore50, As soon as the exception is thrown the code breaks. Is there any way in a dnx app to catch unhandled exceptions?
@NickCraver, @dotnetshadow, there is currently no way to get event on unhandled exceptions in the .Net Core, mostly due to the fact that there is no AppDomain class, so the event has disappeared with it.