Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Build Desktop Apps(WPF,WinForms) Using .Net Core

Tags:

.net

.net-core

Can I Build Desktop Apps(WPF,Windows forms) Using .Net Core?

i know Console App Build Using Both .net core and .net framework. But When i develop Console app using .net core it will runs on(Win,Mac,Linux) is it true?

like image 386
manojselva kumarprabakar Avatar asked Dec 14 '17 07:12

manojselva kumarprabakar


People also ask

Can .NET Core be used for desktop applications?

NET Core Apps end users can run locally using Chrome's leading and consistent rendering engine within a Windows Desktop Application.

Does .NET Core support WinForms?

NET Framework) NET Core Desktop Product Installer (includes WinForms and WPF components/libraries built for . NET, and . NET templates).


2 Answers

UPDATED for .NET 6

.NET 6 will support MAUI, WPF and Winforms for UI.

this means we have at least 3 solutions for a cross-platform UI

  • .NET Multi-platform App UI (.NET MAUI) - not sure if linux is supported
  • electronjs - running JS or running Blazor
  • Blazor Desktop - im not sure this has been released yet

ElectronJs still looks like a solid way to support all main OS's (iOS, Linux and Windows)

.NET 6 - all platforms

Original Answer

.NET CORE 3 will support windows (WPF, winforms) development, only on windows, note at this time its not released yet (at the time of posting).

Mono + Gtk# should support Linux, Mac and Windows.

Windows only

either way, if you really want to write cross platform windows, consider exposing a Web Api and write windows client using electronjs

like image 60
dbones Avatar answered Sep 21 '22 18:09

dbones


Can I Build Desktop Apps(WPF,Windows forms) Using .Net Core?

Yes, Winforms and WPF applications can be built in upcoming Dotnet Core 3.0

Check this blog article. You can also run the Portability analyser in advance.

Update April 17th 2019:

Now we can start using the DotNet Core 3.0 Preview 2 on Visual Studio 2019.

Some of the key features relevant to Desktop app -

  • C# 8

  • Default executables

  • Windows desktop applications using WPF and Windows Forms

  • MSIX Deployment for Windows Desktop

  • Windows Native Interop

See here for porting a desktop application to Dotnet Core 3.0

like image 37
Koder101 Avatar answered Sep 21 '22 18:09

Koder101