Questions tagged [electron.net]

electron.NET lets you build cross platform desktop apps with ASP.NET NET Core. Go here to learn more.

66 questions
8
votes
3 answers

.net core Application is run with different port with electron.net with cross platrom

I've developed an application using .NET Core and Electron.NET and created a login form. For login, I have created separate web API project and call the login API on login button click. When I call API from an application, it gives an error about…
7
votes
0 answers

electronize build does not produce output in \bin\desktop folder

I try to build my electron app using the command "electronize build /target win" but no output is produced in the \bin\desktop folder I tried to use different build targets. But only output is produced in obj/desktop. There is no Electron executable…
CodeChops
  • 173
  • 9
6
votes
1 answer

Show local image file:///tmp/someimage.jpg

Scenario I'm contributing for a OSS project that is build on BlazorServerSide and ElectronNET.API Version 9.31.1. In an Electron window we would like to show images from local storage UI via tag. What I have tried: I have tried with:
dani herrera
  • 48,760
  • 8
  • 117
  • 177
6
votes
2 answers

Electron: mocking out network requests for tests

I'd like to write unit tests for some of my network logic in an Electron app, and need to mock out the network endpoints. In the past, I've used nock for mocking out HTTP requests in Node. However, my Electron code uses the electron.net module for…
Scott Rippey
  • 15,614
  • 5
  • 70
  • 85
3
votes
2 answers

Electron.Net window not opening in blazor server app (.Net 6.0)

I am trying to create a new Blazor server application working with Electron.Net on .Net 6.0. Unlike .Net 5.0 and previous, app configuration and startup code is now done in Program.cs class, as explained here. What is unclear to me at this stage is…
neggenbe
  • 1,697
  • 2
  • 24
  • 62
3
votes
2 answers

How to make a global keyboard hook in C#

How can I make a global keyboard hook for an Electron.NET app in C#? I believe as long as it works in a console app it should work properly in an Electron.Net app. I made a 'solution' for this problem, but It tends to use up a lot of CPU (7-10%).…
spindi598
  • 241
  • 1
  • 4
  • 12
2
votes
1 answer

How to configure Program.cs without startup.cs? .NET 6.0

The instructions at Electron.NET instruct to add the following snippets to my .NET 6 project for Electron to run. Add to Program.cs: public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) …
patshea26
  • 21
  • 3
2
votes
0 answers

Electron.NET "Failed to load resource: net::ERR_CONNECTION_REFUSED"

I mainly developed this app using IIS Express for testing (Faster to start than Electron). Now when I try and run it in Electron.NET using electronize start, almost all of my server-side resources are refusing my connection. I've tried looking…
Marf Bot
  • 55
  • 1
  • 7
2
votes
0 answers

Digitally Signing Electron.Net Application

Is there a particular process/steps to go through in order to digitally sign the Electron.net app? Were there particular settings in the Electron.Manifest.json that can be updated? I am creating a Windows application - just for distribution amongst…
2
votes
0 answers

How to manage app/electron lifecycle that using Electron.NET in server side Blazor project for complex scenario?

I'm trying to develop desktop app using Blazor with electron framework. I'm using .Net 5 with server side Blazor model and Electron.Net wrapper package of electronjs for .Net Core platform. From documentation or different web resources, the basic…
quasar
  • 404
  • 6
  • 17
2
votes
1 answer

How do you override the app version from the command line?

How do I set the version of my Electron .NET app at build time via the command line? I understand that I can set the buildVersion using the electron.manifest.json file, but I would like to be able to override this value from the command line so that…
2
votes
1 answer

Electron.Net: How can i start a window in maximized mode?

I'm using electron.Net, but when I start the main window, It always opens small size aligned to the center. This is my code: public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { …
2
votes
0 answers

loadURL can't work in my second window in Electron.NET

I want to load the URL when the new window is open, but I have an error ERR_INVALID_URL (-300) loading ' ' This is my javascript code function newWindow(RoomName) { const remote = require('electron').remote; const BrowserWindow =…
2
votes
0 answers

How to use embeded firebird database in electron.net using .net core

I have an electron.net project with .net core and I want to use the Firebird embedded database engine. How can i achieve this? Simply, I want to add the Firebird embedded DLL into my electron.net project. so it help me to use Firebird related…
2
votes
0 answers

Issue with using Electron.NET

I have been following the instructions on the Electron.NET Github page https://github.com/ElectronNET/Electron.NET and I have been running into an issue. When I have run the commands in VS Code the Electron code still is not recognised. E.g. public…
1
2 3 4 5