.NET / C# development Ubuntu Desktop cross-platform graphical interface desktop program Avalonia - Visual Studio Installation/Creation/Run Guide (1)

Avalonia is an open source, cross-platform application framework for building desktop applications. It is developed using C# and XAML and runs on multiple platforms including Windows, macOS, iOS, Android and Linux. Avalonia project address:https://github.com/AvaloniaUI/Avalonia

This article quickly introduces how to get started using Avalonia to write and execute Ubuntu Desktop graphical interface desktop programs.

 Open Visual Studio - Extensions - Manage Extensions, search and install all results:

avalonia

 Create a new Avalonia C# project:

Compile the project after editing Greeting in MainViewModel.cs:

Hello World by Eric Woo

Running results in Windows:

 Run the command in Ubuntu:

dotnet HelloWorld.Desktop.dll

# 需按照上一篇安装 Ubuntu 系统的 .NET 环境
# Ubuntu 安装 .NET SDK / .NET Runtime 支持
# https://blog.csdn.net/loveric/article/details/132086925
#
# HelloWorld 程序下载 
# https://download.csdn.net/download/loveric/88162151

 

 

Guess you like

Origin blog.csdn.net/loveric/article/details/132095305