带有.NET Core 3和Electron.NET的多平台桌面HTML编辑器

Multiplatform HtmlEditor

介绍 (Introduction)

With .NET Core 3, C# developers have now many possibilities to develop truly multiplatform GUI applications. You can find a study of these solutions in a recently released book:

借助.NET Core 3,C#开发人员现在可以开发出真正的多平台GUI应用程序。 您可以在最近发行的书中找到有关这些解决方案的研究:

Electron.NET is one of the solutions presented in this book, it provides all means to code a GUI application for Windows, Linux and Mac OS X based on the same .NET Core 3 project. Electron.NET is the .NET Core wrapper around the famous Electron framework (based on NodeJS).

Electron.NET是本书介绍的解决方案之一,它提供了所有基于同一.NET Core 3项目为Windows,Linux和Mac OS X编写GUI应用程序的方法。 Electron.NET是围绕着著名的Electron框架(基于NodeJS)的.NET Core包装器。

For illustrating the use of this tool, I will develop an HTML Editor application. This prototype program illustrates the Electron.NET’s capacity to use JavaScript component inside a cross platform desktop application. In our case, the CKeditor is used for the implementation of the editor itself.

为了说明该工具的用法,我将开发一个HTML编辑器应用程序。 该原型程序说明了Electron.NET在跨平台桌面应用程序中使用JavaScript组件的能力。 在我们的例子中, CKeditor用于实现编辑器本身。

An Electron.NET application is built from an ASP.NET MVC web application, and, therefore extended with the specifics features of a desktop application by using the Electron wrapper for .NET Core: Electron.NET.

Electron.NET应用程序是从ASP.NET MVC Web应用程序构建的,因此通过使用.NET Core的Electron包装器,扩展了桌面应用程序的特定功能:Electron.NET。

先决条件 (Prerequisites)

Before reviewing the development of the HTMLEditor application with Electron.NET, you have to install the appropriate development environment.

在使用Electron.NET审查HTMLEditor应用程序的开发之前,您必须安装适当的开发环境。

So you should have installed on your computer:

因此,您应该已经在计算机上安装了:

  • NodeJS

    节点JS

  • NPM

    NPM

  • Electron.NET global tool for dotnet CLI (see the GitHub website)

    适用于dotnet CLI的Electron.NET全局工具(请参阅GitHub网站)

Check the GitHub web site of the project: https://github.com/ElectronNET/Electron.NET.

检查该项目的GitHub网站: https : //github.com/ElectronNET/Electron.NET

The HtmlEditor application use the 5.30.1 version of Electron.NET.

HtmlEditor应用程序使用5.30.1版本的Electron.NET。

Be careful, you have to double check that you are using the appropriate .NET Core version, the current version of Electron.NET is targeting the .NET Core 3.0 (if you use

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值