- 
                Notifications
    You must be signed in to change notification settings 
- Fork 114
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Actual behavior
error PInvoke000: An internal error occurred: Failed while generating extern method: LocalFree. Failed while generating SafeHandle for LocalFree. Return type HLOCAL on release method LocalFree not supported.
This happens when using LocalFree with newer Microsoft.Windows.SDK.Win32Metadata packages. Older packages were fine.
Expected behavior
It should work.
Repro steps
- NativeMethods.txtcontent:
LocalFree
- NativeMethods.jsoncontent (if present):
{
  "className": "WindowsPInvoke",
  "allowMarshaling": false,
  "wideCharOnly": false,
  "emitSingleFile": true
}Context
- CsWin32 version: 0.2.188-beta
- Win32Metadata version (if explicitly set by project): 45.0.21-preview
- Target Framework: net7.0
- LangVersion(if explicitly set by project): latest
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working