corert
corert copied to clipboard
Move P/Invoke related exceptions and attributes to CoreLib
In order to throw appropriate exception from generated marshalling stubs we need to move P/Invoke related exceptions(eg. DllNotFound) from System.Private.Interop to CoreLib.
System.Private.Interop should be required for COM/WinRT interop via light up only.
Fixed by #7502