Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Welcome to our site

Take a moment to join our board

Search the Community

Showing results for tags 'dotnet'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • Announcements
    • Applications
    • Introductions
    • Off-Topic
  • Programming
    • Game Programming
    • General Programming
    • Web Programming
  • Private Servers
    • Conquer Online
  • Team Rocket's HQ
  • Team Rocket's Double Trouble

Product Groups

There are no results to display.

Blogs

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Country


Languages


Sources


Website

Found 1 result

  1. Getting started with Blazor and Electron.NET Background Information: What is Blazor? From the Blazor Github, Blazor is "an experimental .NET web framework using C#/Razor and HTML that runs in the browser via WebAssembly" What is Electron.NET? From the Electron.NET Github, "Electron.NET is a wrapper around a "normal" Electron application with an embedded ASP.NET Core application". Perquisites: So that this article does not get dated with irreverent information quickly I will be using information from other resources. getting started for blazor node.js v8.6.0+ electron-packager --global Sample Project Github: If you do not want to follow the steps below, or just want to check out the code I reproduced the following steps in a repo. Besure you all the required perquisites https://github.com/mandrepont/blazetron Setting up a simple project: If you have not done so, check out the getting started for blazor to install perquisites for this tutorial Create a new Blazor (ASP.NET Core hosted) project Install ElectronNET.API PM> Install-Package ElectronNET.API In %projectname%.Server/Program.cs change BuildWebHost to use Electron public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseElectron(args) .UseStartup<Startup>() .Build(); In %projectname%.Server/Startup.cs change Configure to open Electron app.UseBlazor<Client.Program>(); Task.Run(async () => await Electron.WindowManager.CreateWindowAsync()); Add cli tooling to %projectname%.Server <ItemGroup> <DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.9" /> </ItemGroup> Note at the time the current version is 0.0.9 dotnet restore Install electron packager sudo npm install electron-packager --global Init and Run dotnet electronize init dotnet electronize start Credits: I claim none of this work as my own and proudly support the work of both the aspnet team on Blazor and the team developing Electron.NET, this post is intended to raise awareness of some of the possibilities for a prototype. Most of the "Setting up a simple project" is directly from both Electron.NET's and Blazor's githubs.
×

Important Information

By using this site, you agree to our Terms of Use.