Code Monkey home page Code Monkey logo

blazorelectronexperiment.sample's Introduction

This is a sample exploring how a Blazor could be used to build a cross-platform desktop application.

It's a Blazor UI inside an Electron shell, with the .NET part running natively on CoreCLR (not on WebAssembly).

The benefits of running on CoreCLR instead of on Mono WebAssembly are:

  • Faster code execution speed
  • Full debugger support
  • Works with all .NET Core packages (because it's literally a standard .NET Core console application)
  • Access to all OS APIs available to desktop applications, e.g., file I/O

How to use

  1. First make sure you can create and run regular browser-based Blazor apps by installing the usual Blazor prerequisites. Test and be sure you can create and run a Blazor app.
  2. Clone this repo, then build and run the project it contains

Extra-experimental and unsupported

This repo is purely a short-term spike to help us understand how such a hosting model would be implemented and how it would be likely to perform.

The code in this repo is not maintained. If you wish to post any issues to let us know how you've got on with it, please feel free to do so. But please don't expect any issues to be fixed, nor any support questions to be answered.

Likewise, I won't be updating any code here to match newer versions of Blazor. It's a one-time spike only.

Summary: This is just a demo. Don't build real apps on top of this. But if you would be interested in building real Blazor+Electron apps, tell us about your scenarios.

blazorelectronexperiment.sample's People

Contributors

stevesandersonms avatar stevesanderson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.