SteveSandersonMS / dotnet-wasi-sdk

Packages for building .NET projects as standalone WASI-compliant modules
518 stars 36 forks source link

Can I use this to run a dotnet core WPF app on linux? #15

Closed sam-wheat closed 2 years ago

sam-wheat commented 2 years ago

Should I? How? App need to access MySQL.

Thanks

marinasundstrom commented 2 years ago

No. This project will not enable you to run a Windows-based technology such as WPF on Linux. And there is not support for MySQL, at least now.

Think of WebAssembly as its own operating environment - a virtual machine. WASI (System Interface) gives you secure access to some common services of the host, filesystem access and networking, may it be on Windows, macOS or on Linux.

The Windows-specific libraries required by WPF can't be accessed from WASM via WASI - nor do they exist on maxOS or Linux anyway.

I would suggest checking out Avalonia as a cross-platform substitute for WPF. It is a community project targeting multiple platforms, such as Linux and Android.

geodeasic commented 2 years ago

Also check out .NET MAUI.