mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Blazor Server Side work on electronize start but not after electronize build /target win #699
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NicolasEhrhard on GitHub (Sep 11, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
Hello, i use electron.Net for my blazor project.
When i use it with electronize start, it's working perfectly, but when i try to publish it to windows ( electronize build /target win )
i've got an javascript error.
this is my manifest.json:
{
"executable": "DakaraApp",
"splashscreen": {
"imageFile": "/wwwroot/images/Dakara.png"
},
"name": "Dakara",
"author": "Alsaris",
"singleInstance": false,
"environment": "Production",
"build": {
"appId": "com.AdminDashboard.Server.app",
"productName": "DakaraApp",
"copyright": "Copyright © 2020",
"buildVersion": "0.0.1",
"win": {
"icon": "/wwwroot/images/Dakara.png"
},
"mac": {
"icon": "/wwwroot/images/Dakara.png"
},
"linux": {
"icon": "/wwwroot/images/Dakara.png"
},
"compression": "maximum",
"directories": {
"output": "../../../bin/Desktop"
},
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [ "/*" ]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": [ "/" ]
},
"**/"
]
}
}
Can someone help me ?
@peter-bozovic commented on GitHub (May 10, 2022):
Check the output folder of the build:
Desktop\win-unpacked\resources\binCheck the
.exefile that you have there, and make sure you have the same name in theelectron.manifest.jsonunder"executable":"..."@damikun commented on GitHub (Aug 26, 2022):
For people who are searching for solution... Please make sure the "executable": "YourNamespaeName", (from electron.manifest.json) match the YourNamespaeName 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
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 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!