Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kevin Beaudoin
    @kevinbeaudoin
    I'm trying to create my first electron net application and I get an error with the code we must add in the Configure method of the Startup file. Electron.WindowManager doesn't seem to exist anywhere. Am I missing something ? Should be pretty easy...
    Umairnazim8
    @Umairnazim8
    I want to build a print application for mac in Electron. Is electron a good platform for such apps.
    Benoit Bergeron
    @Thorinos
    @win32nipuh Good idea, I will try using VS2019. I will let you know if it is working.
    Michel Arendt
    @MichelArendt
    @kevinbeaudoin Are you missing "using ElectronNET.API.Entities;"?
    Cameron Belt
    @camerontbelt
    Does anyone here know how to open a file through the menu in electron.net? Is there a special api call for this?
    Oleg26Dev
    @Oleg26Dev
    @camerontbelt You can replace menu with your own and add menu processing using open file functions , see there http://www.cross-platform-blog.com/electron.net/electron.net-musicplayer-app-with-asp.net-core/
    Deniz İrgin
    @Blind-Striker

    Hi,

    I have just released a new version of Cake.Electron.Net. https://www.nuget.org/packages/Cake.Electron.Net/1.0.0

    Daendel
    @Daendel

    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 in that folder.
    What do I do wrong?

    Tum4ik
    @Tum4ik
    @Blind-Striker hi, what is the benefits of usage your package?
    Deniz İrgin
    @Blind-Striker

    @Tum4ik Hi, it's not useful itself alone. It's an plug-in for Cake which is ;

    Cake (C# Make) is a cross-platform build automation system with a C# DSL for tasks such as compiling code, copying files and folders, running unit tests, compressing files and building NuGet packages.

    https://cakebuild.net/

    My plug-in is basically a wrapper around Electron.NET CLI, it could be helpful if you want to build a ci/cd pipeline for your application with Cake.

    win32nipuh
    @win32nipuh
    @Daendel I have re-checked: ">electronize build /target win" works fine, the result is in "<project>\bin\Desktop\win-unpacked" and the setup files are in the parent folder "<project>\bin\Desktop\"
    svernyi
    @svernyi
    Hey dudes really quick - is the [assemblyname].exe needed for updates? The one in the root folder under win-unpacked
    If that is just the chromium binaries and a reference to your assembly as an entrypoint, certainly you don't need to redeploy it, right? Only asking because it's approaching 100Mb and if I can cut that out from updates it would be nice.
    svernyi
    @svernyi
    Ahh nevermind that's more or less electron-builder. Thanks though
    Michel Arendt
    @MichelArendt

    Is '"singleInstance": true' working for anyone? Whenever I set it to "true":

    D:\work\repositories\SGNA\application\source\Server_API\Server\obj\Host\node_modules\.bin>electron.cmd "..\..\main.js"
    D:\work\repositories\SGNA\application\source\Server_API\Server\obj\Host\node_modules\.bin>
    
    C:\Users\kingd\.dotnet\tools\electronize.exe (process 12984) exited with code 0.
    Press any key to close this window . . .

    There was a fix in 5.22.13: ElectronNET/Electron.NET@3a52680
    Note sure if same issue as: ElectronNET/Electron.NET#258

    Using 5.22.14 and Blazor Core Hosted project.

    Tum4ik
    @Tum4ik
    @Daendel hi, it seems I have the same issue. Check pls you ElectronNET.CLI version via dotnet tool list -g
    you should have the latest 5.22.14 version and also the same version for ElectronNET.API
    if you have some lower version, pls update it via dotnet tool update ElectronNET.CLI -g
    qmour
    @qmour_twitter
    Hi, is there any plan to make the startup of apps faster ? For example the demo app takes 10 seconds to show the main window (Intel Core i7-8700 CPU with 16Gb RAM), this is waaay too slow
    win32nipuh
    @win32nipuh
    I think it is not Electron.NET effect, check how your app is loading
    LukasMayr
    @LukasMayr
    Hi, I've just a general quick question: When using an SPA (Angular) as UI and just having .NET Core WebAPIs - is Electron.NET the right way to go, or should I use standard Electron and host the API with Kestrel? If electron.NET is the answer - has anyone a sample code (because I do not find one in the web).
    Rajesh
    @rajeshsuramalla
    Hi, How do I change the default installation location of the app?
    @LukasMayr Hi, I am using Angular as UI and .Net core as Server with Electron.NET API. It is working fine for me. If you want I will provide the steps to create the App.
    LukasMayr
    @LukasMayr
    Hey Rajesh, that would be very nice - unfortunately we got stuck and do not know how to proceed :)
    Rajesh
    @rajeshsuramalla
    @LukasMayr It is very easy if you have Visual Studio 2017 on your PC.
    LukasMayr
    @LukasMayr
    I have :)
    Rajesh
    @rajeshsuramalla
    @LukasMayr Ok give me some time, I will update you very soon.
    LukasMayr
    @LukasMayr
    @Rajesh -thank you, that is appreciated
    GustavoGSA
    @GustavoGSA
    image.png
    Hi guys, i'm create new project asp net core with angular and i recreate angular project with angular 8, but i can't to run the project with this error...
    anybody know i resolve this using electron aspnet core with angular 8 template?
    GustavoGSA
    @GustavoGSA
    @rajeshsuramalla do you use angular 8 with electron.net? Can you help me how to create it? Thanks
    Rajesh
    @rajeshsuramalla
    @LukasMayr Hi, I have created a sample project, you can clone from following URL https://github.com/rajeshsuramalla/AngularWithDotNetCoreElectronNET. Follow the readme file.
    LukasMayr
    @LukasMayr
    @Rajesh thank you very very much :) unfortunately I have to leave now but I will keep you posted on progress :)
    Rajesh
    @rajeshsuramalla
    @GustavoGSA Hi, I have created with Angular 6 template, then updated to 8.2.3. It is working fine for me. If you want to know the steps goto the following URL https://github.com/rajeshsuramalla/AngularWithDotNetCoreElectronNET.
    @LukasMayr OK :)
    GustavoGSA
    @GustavoGSA
    @rajeshsuramalla do you update angular using ng update or you removed ClientApp and create a new 8.2.3 using ng new ClientApp?
    Rajesh
    @rajeshsuramalla
    @GustavoGSA I have updated using ng update.
    GustavoGSA
    @GustavoGSA
    ok @rajeshsuramalla i'm try this using ng update, I tried with ng new e get error described above, thanks.
    Rajesh
    @rajeshsuramalla
    @GustavoGSA The above error is not related to angular. It is related to Dotnet Core, Try your project output in your browser before building the Electron app.
    GustavoGSA
    @GustavoGSA
    @rajeshsuramalla in browser runing "dotnet run" everything works fine, the problem occurs when i run "electronize start",
    that's strange.
    @rajeshsuramalla and this problem only occurs when i update angular by "ng new ClientApp", in version 6.1 create by template works fine
    benlemond
    @benlemond

    I have downloaded ElectronNET-API-Demos. I have gotten it running simply enough. My problem is that I am new and I am trying to figure out how to customize an installer build in order to deploy my custom application.

    I have run electronize build /target win and I have created a "electron.net.host Setup 1.0.2.exe" file under "ElectronNET-API-Demos\obj\desktop\win\dist". My question is which package.json files (or other files) do I need to customize in order to change the Author and other properties about the build for my exe?

    Tum4ik
    @Tum4ik
    @benlemond you should customize electron.manifest.json file. It contains properties from electron-builder. You can find the documentation for electron-builder here https://www.electron.build/
    for example here is my manifest file from my own project
    {
      "executable": "Tum4ik.RemoteControl.Server",
      "splashscreen": {
        "imageFile": ""
      },
      "singleInstance": true,
      "build": {
        "appId": "com.Tum4ik.RemoteControl.Server.app",
        "productName": "Remote Control Server",
        "copyright": "Copyright © 2019",
        "buildVersion": "0.0.20191216",
        "compression": "maximum",
        "directories": {
          "output": "../../../bin/Desktop",
          "buildResources": "../../../installer"
        },
        "extraResources": [
          {
            "from": "./bin",
            "to": "bin",
            "filter": ["**/*"]
          }
        ],
        "files": [
          {
            "from": "./ElectronHostHook/node_modules",
            "to": "ElectronHostHook/node_modules",
            "filter": [ "**/*" ]
          },
          "**/*"
        ],
        "win": {
          "target": "nsis",
          "icon": "../../../installer/installer.ico"
        },
        "nsis": {
          "oneClick": false,
          "perMachine": true,
          "allowToChangeInstallationDirectory": true,
          "installerIcon": "../../../installer/installer.ico"
        }
      }
    }
    it builds the NSIS installer for Windows
    take a look at the last two sections
    benlemond
    @benlemond
    Is that the electron.manifest file in the project root directory or in an obj directory?
    @Tum4ik
    @Tum4ik Is that the electron.manifest file in the project root directory or in an obj directory?
    VarunNagal
    @VarunNagal
    @rajeshsuramalla Hi Rajesh. Thank you for providing the sample URL https://github.com/rajeshsuramalla/AngularWithDotNetCoreElectronNET. I would like to futher ask a few questions. The scenario is I have 2 Web API's. An angular application. A database layer using MongoDB. All independent. I need to create a desktop app using all of them together. i.e. the app firstly starts the database, then hosts the 2 API's and then renders the angular app in the desktop. And when I close the app it closes down the API's, the database along with it. So I need to get them all together using Electron.Net. Q1> Is Electron.Net the right thing to go for such a scenario. Q2> How do I go about hosting the API's from my app and also the database. One thing I tried was that I started a new process and hosted the API's in that in the Main() method. i.e. "dotnet MyApi.dll". Is this the right approach ? Q3> If things do work like this then how do i package(create Setup) it as a single application?
    Tum4ik
    @Tum4ik
    @benlemond it is a file in the project root directory