You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/getting-started/blazor-electron-app.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,54 +9,54 @@ documentation: ug
9
9
10
10
# Creating Desktop Application using Blazor and Electron
11
11
12
-
This section explains how to create and run desktop applications using Blazor and Electron Framework with Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
12
+
This section explains how to create and run a desktop application by using Blazor and the Electron.NET framework with Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
13
13
14
14
## What is Electron?
15
15
16
-
[Electron](https://www.electronjs.org/) framework for building cross-platform desktop applications with web technologies. It utilizes `Node.js` and the `Chromium` rendering engine to run a web application on a desktop shell.
16
+
[Electron](https://www.electronjs.org/)is a framework for building cross-platform desktop applications with web technologies. It utilizes `Node.js` and the `Chromium` rendering engine to run a web application in a desktop shell.
17
17
18
18
## Create a Blazor server-side application
19
19
20
-
You can create Blazor Server application using either CLI or Visual Studio referring the below links
20
+
Create a Blazor Server application by using either the CLI or Visual Studio:
21
21
22
-
*[Create Blazor server application using CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-dotnet-cli)
22
+
*[Create a Blazor Server application by using the CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-dotnet-cli)
23
23
24
-
*[Create Blazor Server application using Visual Studio](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio)
24
+
*[Create a Blazor Server application by using Visual Studio](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio)
25
25
26
-
N> This setup does not work with Target Frameworks greater than .NET 6. For more details and troubleshooting, refer to this [GitHub thread](https://github.com/ElectronNET/Electron.NET/issues/837#issuecomment-1985434060).
26
+
N> This setup does not work with target frameworks greater than .NET 6. For details and troubleshooting, see this [GitHub thread](https://github.com/ElectronNET/Electron.NET/issues/837#issuecomment-1985434060).
27
27
28
28
## Configure Electron in Blazor App
29
29
30
-
You can run the below commands either in**Visual Studio Developer Command Prompt** or **CLI** based on the tool you are using for development.
30
+
Run the following commands in either the**Visual Studio Developer Command Prompt** or a **command-line interface (CLI)** based on the development environment.
31
31
32
32
1.Install [ElectronNET.API](https://www.nuget.org/packages/ElectronNET.API/) NuGet package in the application.
33
33
34
34
```
35
35
dotnet add package ElectronNET.API
36
36
```
37
37
38
-
2.Create a local .NET tool manifest file by running the following command. This will create a manifest file in the **~/.config/dotnet-tools.json**location.
38
+
2.Create a local .NET tool manifest file by running the following command. This creates a manifest file at **~/.config/dotnet-tools.json**in the current project.
N> To close the electron app when closed the electron window add the below code in**//Open the Electron-Window** in step 6 in the **~/Program.cs** file of .NET 6 application.
118
+
N> To close the Electron app when the Electron window is closed, add the following code under**//Open the Electron-Window** in step 6 in the **~/Program.cs** file of a .NET 6 application.
8.Run the below command lines to do production builds based on platform
148
+
8.Run the following commands to create production builds for each platform.
149
149
150
150
```
151
151
dotnet electronize build /target win
152
152
dotnet electronize build /target osx
153
153
dotnet electronize build /target linux
154
154
```
155
155
156
-
N> [View the complete Blazor Server electron application with Syncfusion<supstyle="font-size:70%">®</sup> controls on GitHub](https://github.com/SyncfusionExamples/blazor-electron-app)
156
+
N> [View the complete Blazor Server Electron application with Syncfusion<supstyle="font-size:70%">®</sup> components on GitHub](https://github.com/SyncfusionExamples/blazor-electron-app)
0 commit comments