Questions tagged [electron.net]

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

51 questions
10
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…
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
  • 39,746
  • 4
  • 87
  • 153
5
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…
Daendel
  • 81
  • 4
5
votes
1 answer

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
  • 14,881
  • 5
  • 68
  • 83
3
votes
2 answers

How to Debug Electron.NET application

I'm Developing an application using Electron.NET and .Net Core 2.1 in Visual Studio Code, Now I'm Facing an issue in Debugging an Electron.NET Application.I have also Configure lunch.json file for debugging it,but still not able to debug the app.…
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
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
vote
1 answer

Using Blazor with Electron.NET, how can I execute code inside a component whenever I click on a MenuItem?

I am using Blazor Server. Inside my startup I am configuring the MenuItems like this: var menu = new[] { new MenuItem { Label = "File", Submenu = new[] { new MenuItem { Label = "Save",…
Marco Siffert
  • 474
  • 1
  • 4
  • 14
1
vote
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
  • 324
  • 3
  • 15
1
vote
0 answers

How do I prevent .net core service closing when I close electron window

I am building an Electron app in .net and using the Electron.net package and following their example web app. But I would like to keep my .net web service running, even if the user closes the Electron window. I'm planning to put a tray icon to allow…
Quintonn
  • 649
  • 6
  • 27
1
vote
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 =…
1
vote
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
  • 141
  • 8
1
vote
1 answer

Calling javascript from Blazor results in error

I have a Blazor app built on .NET Core 3.1 and I need to be able to access USB port resources. I keep getting the error: JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendererd. When…
HeineSkov
  • 449
  • 1
  • 5
  • 17
1
vote
1 answer

Passing Command line arguments to .exe generated after build

I have a desktop App.exe built using Electron.Net. If I pass parameters along with "electronize start", these argument values are ignored. Even after build, I am not able to pass parameters as command line arguments to .exe from command prompt. In…
VH97
  • 13
  • 4
1
2 3 4