-
Notifications
You must be signed in to change notification settings - Fork 796
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
Mono Breaks WSL Interop #8531
Comments
Credit for workaround comes from here. I am opening this as a new issue because that issue was closed and appears to be ignored. cc @benhillis who participated in the initial conversation. |
When installing
Notice the
so As mention above and other posts
|
This is by design. Mono is overwriting the WSL binfmt interpreter, there is nothing we can do about that. |
Can |
The problem is with mono registering a binfmt with magic = MZ, WSL will never get invoked. The kernel will use whatever interpreter was registered last. |
|
Version
Microsoft Windows [Version 10.0.22000.739]
WSL Version
Kernel Version
5.10.102.1-microsoft-standard-WSL2
Distro Version
Ubuntu 20.04
Other Software
mono-runtime, version 6.12.0.182-0xamarin1+ubuntu2004b1
Installed from APT source provided by upstream Mono project as documented here.
Reason I need latest Mono is so I can use NuGet.exe on Linux. This is the officially documented workflow for using NuGet on macOS/Linux.
Repro Steps
mono-complete
package according to the Mono project's instructions (linked above)notepad.exe
Expected Behavior
I expect to se the Notepad application start.
Actual Behavior
Notepad does not start, and the following is printed in my terminal:
I believe this is because the
mono-runtime
package is installing a new binary format (namedcli
) which matches any PE executable file or DLL.I can work around by running the following command:
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: