In SafeNativeMethods.cs, I think this line: if (!obj is Rect)) should be: if (!obj is RECT) I was able to compile successfully using PowerShell when this line was changed.
In SafeNativeMethods.cs, I think this line:
if (!obj is Rect))
should be:
if (!obj is RECT)
I was able to compile successfully using PowerShell when this line was changed.