-
Notifications
You must be signed in to change notification settings - Fork 36
Edge with .net core external dll sample required. #40
Comments
i tried to create sample project for last 5 hours .... and failed :( ... see electron-edge-netcore my guess, why it isnt worknig is because edge custom compilation fails with this error:
im not trying to understand that - not c++ developer ... looks like something not referenced? i welcome any kick in |
@CzBuCHi Hi, Frankly I haven't checked your example. But it looks similar to the issue I was resolved using step 2 above. |
@weliwita I didnt have installed c++ compiler in visual studio 2017 and thats why i got these unresolved symbols .... after that edge compiles file (only warnings) Tried basic ES5 'Hello world' example, and in .net 4 works fine, but in .net core it throws edge.initializeClrFunc is not a function again :( - in my case object 'edge' has no own members ... i think i just wait a while and see ... |
Ok, One step further. I was able to get away with referencing core dlls issue. I removed
Map js function to the external dll
My Startup class in dotnets.dll looks like follows. Startup.cs
I will try to add a git hub link as soon as I can assemble this to properly. |
@CzBuCHi ok I agree with you. If you don't want to downgrade to a preview version of dotnet core, I think you should wait for someone from this project to respond. |
Link to my sample repo - https://github.com/weliwita/electron-edge-sample |
I found this thread useful in this regard. tjanczuk#463. But I could not get this to work after building .net core project and generating
.deps
file. The electron app crashes as soon as I set EDGE_APP_ROOT todeps
file location.Everything working fine when dotnetcore code running inline with javascript. But I can't get external dotnetcore dll referenced. I couldn't find any step by step documentation or sample app in this regard, except for the thread above.
Here are the steps I followed,
npm install electron-edge
EDGE_USE_CORECLR=1
1.0.0-preview2-003121
dotnet restore
anddotnet build
created deps file and the dllEDGE_APP_ROOT
to the debug folder wheredeps
file and dll lives and run my electron app it crashes. Event log has following error.Please let me know if there is anything wrong with my steps referring my own core dll with edge. If you have a complete working sample it is much appreciated.
The text was updated successfully, but these errors were encountered: