I’m using a 3rd party library (Fluent NHibernate) that throws a harmless “file not found” exception on startup when I run with “break on all Common Language Runtime Exceptions” enabled (Debug | Exceptions… menu).
I realize I could just uncheck the specific “file not found” exception, but then I wouldn’t get a break if this occured somewhere else in my code.
Is there any way (pragma? attribute?) to suppress the exception, but only in the one place I know it will occur?
I don’t think there is an option for this in VS, but maybe someone else knows of a way.
As an alternative, you could:
However, this is manual, and doesn’t meet your needs as being a permanent solution.