Comment 3 for bug 1235891

Revision history for this message
Stefan Bodewig (stefan-bodewig) wrote :

I'm having a hard time building NUnit trunk on Mono 2.10 - this would be Mono 4.0 and things aren't quite where the build system expects them.

What happens is that the type constructor for AsyncInvocationRegion is triggered in line 579 of Assert - the framework assembly I use has been built for Windows - but in Mono the Exception class has no PreserveStackTrace method.

The branch I've just linked falls back to a no-op if the PreserveStackTrace isn't found at runtime.

TBH I'm not sure this is the best way to fix it - in particular since I don't have a Windows environment at hand right now - so I don't claim my trivial change would fix anything.