Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Electronize startup exception.

Open MichielArkema opened this issue 3 years ago • 11 comments

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:

image

Hopefully someone is able to help me.

MichielArkema avatar Sep 13 '21 10:09 MichielArkema

Same probleme here #602 . Hope someone has already resolved this

NicolasEhrhard avatar Sep 13 '21 16:09 NicolasEhrhard

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

MichielArkema avatar Sep 15 '21 13:09 MichielArkema

Rename your project, remove any dot in it.

towerbit avatar Sep 17 '21 02:09 towerbit

Having this error when doing electronize start, project works fine when using electronize start /watch :/

Somfic avatar Sep 19 '21 16:09 Somfic

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.

schaveyt avatar Oct 18 '21 05:10 schaveyt

In electron.manifest the executable, name, productname fields must be the same.

serdar-sahin avatar Oct 26 '21 08:10 serdar-sahin

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

ggomarighetti avatar Nov 26 '21 02:11 ggomarighetti

@MichielArkema if @ggomarighetti 's solution fixes your problem can you close this ticket please?

danatcofo avatar Dec 07 '21 18:12 danatcofo

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":"..."

peter-bozovic avatar May 10 '22 20:05 peter-bozovic

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 :)

mcrio avatar Jun 26 '22 20:06 mcrio

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

damikun avatar Aug 26 '22 08:08 damikun

🎉🚀 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!

GregorBiswanger avatar Mar 28 '23 15:03 GregorBiswanger