Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using .NET Core on Desktop Application

I am starting the development of a server using C# and I would like to use .NET Core as it is said multi-platform and that I might be interested on running it on Linux.

I installed the CoreCLR with DNX as it is said here: http://dotnet.readthedocs.org/en/latest/getting-started/installing-core-windows.html

However I would like to target the .NET Core directly from Visual Studio, I don't have any option to do so.

I'm coding a classic desktop console application, not an ASP.NET one, but some examples on the GitHub of the .NET Foundation are based on console application so I guess it's not a problem

Have someone managed to install and target the .NET Core, and if so, how ? Thanks in advance

like image 689
J. Doe Avatar asked Oct 24 '15 10:10

J. Doe


People also ask

Can we use .NET Core for desktop application?

NET Core App and host it inside an Chromium Embedded Framework (CEF) browser. This provides instant utility for being able to deploy . NET Core Apps end users can run locally using Chrome's leading and consistent rendering engine within a Windows Desktop Application.

Is .NET good for desktop application?

NET framework can run only on Windows. It is used to build desktop apps for Windows and large-scale apps for enterprises. Apps built with . NET framework has good networking, memory management, security, APIs, and application deployment.

Does .NET Core support GUI?

NET Core is the managed code answer of Microsoft to cross-platform needs, but it lacks on cross-platform GUI support. Java is cross-platform and its GUI (AWT/Swing) suite is available on all platform.


1 Answers

For that you need to do the following in VS 2015: File->New Project->(Visual C#)->Web->Console Application. I guess you created a console application under "Windows". It runs on top of the classic CLR (Not CoreCLR)

Plus if you want to make sure that the application runs on top of the CoreCLR when you debug it then right click to the project -> Properties -> Application Tab -> and under "Platform" select ".NET Core" (only works for projects created under "Web" -> "Console Application")

like image 144
gregkalapos Avatar answered Oct 15 '22 18:10

gregkalapos