-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaffold Core - Combine Electron, React, Edge, C# #1
Comments
It seems very challenging to get electron-edge-js to work. We had to set some csproj settings to match the quick start project so it would include many C# dlls and the Edge dll provided in node_modules. We discovered that electron-react-boilerplate has particular challenges with native module dependencies as detailed here: @electron/rebuild was saying it couldn't get the abi for Electron 22.0.0. We had to uninstall and reinstall @electron/rebuild to rebuild electron-edge-js as a native dependency. If this does not work in the future, try adding a new node-abi as a dependency override: Then node-gyp was saying it couldn't find Python. So I installed 3.6.x as detailed in the Building on Windows section of edge-js readme. Then it said it couldn't find a Visual Studio installation to use, so I used the Visual Studio Installer to install "Desktop development with C++". After that, Now I can see when debugging edge.js that it is finding the built version |
You probably already know this and this may not be related to the issue above but electron-edge-js has to have a matching electron and nodejs version. Thats why the |
Thanks for the tip, Ira! Wasn't sure whether that would be an issue or not, but I think that makes sense now that I think about it more. Building a native dependency for Electron to run when Electron is running a different version of Node to run the native dependency probably wouldn't work well. Anyway, we uninstalled node and installed windows nvm Edit: Solved by fixing the incorrect path to the EdgeJs.dll in EdgeLibrary.csproj according to this post! I imagine we will have to work through getting it to work packaged and with asar and electron-builder and such at some point. Looks like you have to specify your built dll's as externalFiles or externalResources or something and possibly
Here's another example repo of setting up asar unpacks dependent on the platform for .NET projects https://github.com/yoDon/electron-dotnet/blob/master/package.json |
Now we're having an exception in production in edge or somewhere in .NET: Run agracio/electron-edge-js#21 has some words on publishing the C# project for Edge. The following links are the only places I could find anywhere that mention this error: |
Out of curiosity, I ran 10000 edge requests in the electron-edge-js-quick-start which uses |
In considering whether setting The VSCode Sandboxing process article provided a lot of insight on how VS Code is structured. They have had Notes from the article:
VSCode's code organization: https://github.com/microsoft/vscode/wiki/source-code-organization Following are more links pertaining to My takeaways:
|
We have decided to abandon Edge. There were 18 commits, and they compare to main here: main...09aab3f We will move forward with #16 and websockets |
As a developer, I want to develop on a base of code projects including the relevant technologies for the software so I can develop the software.
The text was updated successfully, but these errors were encountered: