4 ms·
WPF apps are supposed to work on .NET Core and .NET Core is multiplatform so I'd say it's not windows-only - am I missing something here?
by bialpio 8y ago
WPF apps are supposed to work on .NET Core and .NET Core is multiplatform so I'd say it's not windows-only - am I missing something here?
- miguelrochefort 8y agoThey use Windows-specific APIs for input and rendering and what not.
- amatwl 8y agoThis is where .NET Core gets confusing. They're just able to run on the .NET Core runtime (versus the "full" .NET Framework). WPF uses DirectX heavily, so it's not like Microsoft just ported DirectX to non-Windows platforms.
- stetrain 8y ago"The highlight of .NET Core 3 is support for Windows desktop applications, specifically Windows Forms, Windows Presentation Framework (WPF), and UWP XAML. You will be able to run new and existing Windows desktop applications on .NET Core and enjoy all the benefits that .NET Core has to offer." WPF, Windows Forms, and UWP are listed under the Windows-Only Desktop Packs section in the diagram. https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-3-and-support-for-windows-desktop-applications/ https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-...
- bialpio 8y agoGot it, thanks!
- interesthrow2 8y agohttps://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-3-and-support-for-windows-desktop-applications/ https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-... Things are a bit more complicated than that, I guess that's specifically why Microsoft is open sourcing "the desktop pack", because it is not multi-platform.
- schnide05095 8y agoWPF (and the other UI technologies listed) still rely on a lot of the underlying Windows API. Now that they are open sourced though, someone outside MS can work on a port, though I imagine it will take a non-trivial amount of effort. The change here is that .Net Core now supports it, but only if you reference the appropriate SDK[1] [1] https://blogs.msdn.microsoft.com/dotnet/2018/12/04/announcing-net-core-3-preview-1-and-open-sourcing-windows-desktop-frameworks/ https://blogs.msdn.microsoft.com/dotnet/2018/12/04/announcin...
- oblio 8y agoThe Windows stuff is an add-on pack which is Windows only.
- merb 8y agothey use dllimport to use native windows dll's: https://github.com/dotnet/winforms/search?q=dllimport&unscoped_q=dllimport https://github.com/dotnet/winforms/search?q=dllimport&unscop...