microsoft / vs-pty.net

Fork pseudoterminals in C#
MIT License
49 stars 18 forks source link

Can't find SystemNative_GetEnviron entry point #22

Closed markcanary closed 3 years ago

markcanary commented 3 years ago

I am trying to run a .NET 5 Pty.Net application on a Raspberry PI running Ubuntu 20.04.1 LTS and I am getting the following stack trace. Other .NET 5 applications work fine on this device. The application works fine running it on Windows.

Waiting on 918951
Unhandled exception. One or more errors occurred. (Unable to find an entry point named 'SystemNative_GetEnviron' in shared library 'System.Native'.)
System.AggregateException: One or more errors occurred. (Unable to find an entry point named 'SystemNative_GetEnviron' in shared library 'System.Native'.)
 ---> System.EntryPointNotFoundException: Unable to find an entry point named 'SystemNative_GetEnviron' in shared library 'System.Native'.
   at Pty.Net.Linux.NativeMethods.GetEnviron()
   at Pty.Net.Linux.NativeMethods.execvpe(String file, String[] args, IDictionary`2 environment)
   at Pty.Net.Linux.PtyProvider.StartTerminalAsync(PtyOptions options, TraceSource trace, CancellationToken cancellationToken)
   at Pty.Net.PtyProvider.SpawnAsync(PtyOptions options, CancellationToken cancellationToken)
   at TestTerminal.Program.StartTerminal() in C:\Users\Mark\Downloads\TestTerminal\TestTerminal\Program.cs:line 54
   --- End of inner exception stack trace ---