title: How to PInvoke AppKit methods from .Net Core application?
body: <p>Is it possible to use PInvoke to call into AppKit methods when running on .Net Core on Mac OS?  Specifically, I would like to use the <a href="https://developer.apple.com/documentation/appkit/nsworkspace/1530465-recycle" rel="noreferrer"><code>NSWorkspace.Recycle</code></a> method.</p>
  
  <p>According to the <a href="https://docs.microsoft.com/en-us/dotnet/standard/native-interop" rel="noreferrer">documentation</a> PInvoke is supported on MacOS, it is just not clear how one would use this to interact with frameworks such as AppKit.</p>