mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Why >electronize start does not start the application? #319
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 @win32nipuh on GitHub (May 21, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
I have build the simple app as Gregor showed in youtube.
It was built in VS2019, all is ok.
But when I do
PS E:\MyProjects\CrossPlatform\Federmesser\fmapp5> electronize start
Start Electron Desktop Application...
Microsoft Windows [Version 10.0.17134.765]
(c) 2018 Microsoft Corporation. All rights reserved.
E:\MyProjects\CrossPlatform\Federmesser\fmapp5>dotnet publish -r win-x64 --output "E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin"
Microsoft (R) Build Engine version 16.1.54-preview+gd004974104 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 594.66 ms for E:\MyProjects\CrossPlatform\Federmesser\fmapp5\FMApp5.csproj.
C:\Program Files\dotnet\sdk\3.0.100-preview4-011223\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview [E:\MyProjects\CrossPlatform\Federmesser\fmapp5\FMApp5.csproj]
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\bin\Debug\netcoreapp3.0\win-x64\FMApp5.dll
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\bin\Debug\netcoreapp3.0\win-x64\FMApp5.Views.dll
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin
E:\MyProjects\CrossPlatform\Federmesser\fmapp5>
Skip npm install, because node_modules directory exists in: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules
Invoke electron.cmd - in dir: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules.bin
Microsoft Windows [Version 10.0.17134.765]
(c) 2018 Microsoft Corporation. All rights reserved.
E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules.bin>electron.cmd "....\main.js"
stdout: info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5057
stdout: info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin
and silence...
Then I go to the folder and run FMApp5.exe manually - the same, no app.
What I do wrong?
I have attached my project
FMApp51.zip