Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C#] Cannot reference System.Diagnostics.Process.dll required for .NET 5 #10801

Closed
fourst4r opened this issue Sep 22, 2022 · 0 comments · Fixed by #11551
Closed

[C#] Cannot reference System.Diagnostics.Process.dll required for .NET 5 #10801

fourst4r opened this issue Sep 22, 2022 · 0 comments · Fixed by #11551
Milestone

Comments

@fourst4r
Copy link
Contributor

fourst4r commented Sep 22, 2022

The Linux version of System.Diagnostics.Process.dll works fine, but trying to add --net-lib with the Windows .NET 5 SDK version you will encounter this error. (Presumably you need to use the trace function(?))

Module Interop does not define type Interop_Shell32_SHELLEXECUTEINFO
C:\HaxeToolkit\haxe\std/haxe/Log.hx:29: lines 29-75 : ... Defined in this class

This is a stub of what the C# interface looks like for that type

internal static class Interop
{
  internal class Shell32
  {
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    internal struct SHELLEXECUTEINFO
    {
    }
  }
}

This DLL is required for Haxe std to compile on C# windows.

@Simn Simn added this to the Later milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants