Electron.NET
Electron.NET copied to clipboard
Electronize startup exception.
For starters, the installation did not bring the manifest json nor the [email protected] image.
After fixing those issues I stumbled upon a new one when executing the electronize start command.
Error:
Hopefully someone is able to help me.
Same probleme here #602 . Hope someone has already resolved this
Same probleme here #602 . Hope someone has already resolved this
Unfortunately I haven't been able to fix it yet. It seems like a problem with the installation process in Electron.NET
Rename your project, remove any dot in it.
Having this error when doing electronize start
, project works fine when using electronize start /watch
:/
With .net6 rc2, I also has to set my electron.manifest.json environemnt to Development
rather than Production in order for the static assets to not report a 404.
In electron.manifest the executable, name, productname fields must be the same.
I found the solution.
What you need is to change the configuration of the project, that error gives it to you because Electronize what it is to use the already compiled project.
To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json
@MichielArkema if @ggomarighetti 's solution fixes your problem can you close this ticket please?
Check the output folder of the build: Desktop\win-unpacked\resources\bin
Check the .exe
file that you have there, and make sure you have the same name in the electron.manifest.json
under "executable":"..."
To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json
This could be part of the docs. @ggomarighetti I could file a PR but don't want to take all the fame you deserve :)
For people who are searching for solution... Please make sure the "executable": "YourNamespaeName",
(from electron.manifest.json
) match the <AssemblyName>YourNamespaeName</AssemblyName>
from your .csproj
file...
Also make sure that you dont use whitespaces and characters as -,/....
there because electron removes it and than app does not know what exe
file to run because the name executable is different from defined in manifest...
Your executable can be find under obj/host/bin
it ends with .exe
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!