I am porting a C# app from .NET on Windows to Mono on Linux (both using .NET 4.0). When compiling the code I get the following code:
Error CS1061: Type System.AppDomain does not contain a definition for FirstChanceException and no extension method FirstChanceException of type System.AppDomain could be found. Are you missing an assembly reference? (CS1061) (V8.Net-Console)
for the following code:
AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException;
When looking at AppDomain via Assembly Browser I do not see any definition for FirstChanceException. Is it missing from Mono or is it some issue on my machine? If it is missing, what alternative is available?
FirstChanceExceptionevent declared in the AppDomain.cs code. I don't know if there's an alternative or not (I haven't had the need to use this event before), sorry. - Chris Sinclair