Robert Muehsig a172a95f7e Update README.md
2017-10-17 23:49:24 +02:00
2017-10-08 22:39:04 +02:00
2017-10-11 22:46:58 +02:00
2017-10-17 23:24:03 +02:00
2017-10-17 23:33:52 +02:00
2017-10-17 23:33:52 +02:00
2017-10-11 22:46:58 +02:00
2017-10-17 22:31:03 +02:00
2017-10-05 04:44:58 +02:00
2017-10-16 22:36:46 +02:00
2017-10-16 22:36:46 +02:00
2017-10-03 14:39:26 +02:00
2017-10-08 23:22:43 +02:00
2017-10-17 23:49:24 +02:00

Electron.NET Logo

Master: Build status

Build cross platform desktop apps with .NET Core and ASP.NET NET Core.

Usage:

    <ItemGroup>
       <DotNetCliToolReference Include="ElectronNET.CLI" Version="*" />
    </ItemGroup>
  • Make sure you have node.js and on OSX/Ubuntu the electron-packager installed (via "sudo npm install electron-packager --global")
  • In your ASP.NET Core folder run:
    dotnet electronize init
  • Now a electronnet.manifest.json should appear in your ASP.NET Core project

  • Now run the following:

    dotnet electronize build

  • In your default setting we just build the application for the OS you are running (Windows builds Windows, OSX builds OSX etc.), but this can be changed with:

    dotnet electronize build win
    dotnet electronize build osx
    dotnet electronize build linux
  • The end result should be a electron app under your /bin/desktop folder

Dev Notes:

Currently there are two main projects and a "WebApp" that serves as a demo playground.

  • ElectronNET.API: Defines the Electron / .NET API bridge
  • ElectronNET.CLI: Responsible for the dotnet "electronize" tooling.

Both projects create their own nuget package. The resulting nuget packages are saved under "/artifacts".

Currently the packages are just build with version 1.0.0 on your machine. NuGet might pick the wrong version from its own cache, so please read the dev notes if you want to develop!

ElectronNET.WebApp:

The WebApp now has referenced the API NuGet package and via the .csproj reference the CLI:

<ItemGroup>
   <DotNetCliToolReference Include="ElectronNET.CLI" Version="*" />
</ItemGroup>

Dev Notes: Dev Workflow

(at least for the CLI extension)

  • Change something in the CLI project
  • rebuild the project (a nuget package should now appear in the /artifacts directory)
  • make sure there is no ElectronNET.CLI package in your %userprofile%.nuget\packages cache with the same version
  • execute dotnet restore in the WebApp
  • execute dotnet electronize
Description
No description provided
Readme 10 MiB
Latest
2025-12-18 23:09:34 +00:00
Languages
C# 70.9%
HTML 10.7%
TypeScript 9.4%
JavaScript 6.5%
CSS 1.6%
Other 0.9%