mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Can't start my app #49
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 @Petermarcu on GitHub (Nov 4, 2017).
I'm running
dotnet electronize startand it stops at:stdout: Use Electron Port: 8002I'm using .NET Core 2.0 and Node 8.9. Is that going to work? Any ideas? What other info would be helpful? Should I expect my app to come up when I run start?
@robertmuehsig commented on GitHub (Nov 4, 2017):
Does dotnet electronize build work on our machine and can you open the produced application in the /bin/desktop folder?
The start command seems to have some problems unfortunately.
@Petermarcu commented on GitHub (Nov 4, 2017):
Yes build worked and there was an 80MB exe in there but it wouldn't launch. I Also installed electron globally and tried
electron .in /bin/desktop folder and it said it couldn't find an app.@robertmuehsig commented on GitHub (Nov 4, 2017):
Did you use a brand new ASP.NET Core application or the WebApp demo in this repo?
@Petermarcu commented on GitHub (Nov 4, 2017):
I did a new one. I'll try the sample.
@Petermarcu commented on GitHub (Nov 4, 2017):
Ok, after the fix with the PR I just made for the package version, I was able to
dotnet electronize startthe sample application.I did
dotnet new webto create the app and then copied in the content from the README.md instructions. I hit the launchSetting.json bug and copied that over. I wonder if there are other differences.@robertmuehsig commented on GitHub (Nov 4, 2017):
Mhh - if you are working with this repository you will need to make sure that under /artifacts are the "dev" NuGet packages (versioned with 1.0.0.0), otherwise it will fall back to the versions on NuGet.org and then it is chaos.
Current approach:
Build the CLI & API, then you should see the NuGet packages under /artifacts. This directroy is configured as a NuGet source and will be consumed from the WebApp. Especially the CLI project is pretty weird, because NuGet is really aggressiv in caching dotnet CLI extensions.
See https://github.com/ElectronNET/Electron.NET/wiki#dev-notes .
@Petermarcu commented on GitHub (Nov 4, 2017):
Ok, do you think it would be worth having a sample that doesn't require knowing the dev workflow for the repository?
@robertmuehsig commented on GitHub (Nov 4, 2017):
That's the idea behind those repos: https://github.com/ElectronNET/electron.net-api-demos & https://github.com/ElectronNET/electron.net-musicplayer-sample
@GregorBiswanger created those and I think they only use the NuGet versions (but be aware to clean the NuGet cache, otherwise you might work with dev-bits)
@Petermarcu commented on GitHub (Nov 4, 2017):
great. Didn't know about those. After building the repository, 1.0.0 resolved for me.
@robertmuehsig commented on GitHub (Nov 4, 2017):
Great! We are working on better documentation & more demos. The "WebApp" project here is just our playground.
@Petermarcu commented on GitHub (Nov 4, 2017):
Actually, I'm reopening this one. I meant to close the PR. I still haven't gotten my normal app working.
@Petermarcu commented on GitHub (Nov 4, 2017):
What I have done is confirm that when I create the application in visual studio, it works. So there is a problem with the difference between the Visual Studio template and the dotnet new template.
@robertmuehsig commented on GitHub (Nov 4, 2017):
Ah - via dotnet new it doesn't work? Mhh...
@Petermarcu commented on GitHub (Nov 4, 2017):
Thats right. I'm diffing now.
@Petermarcu commented on GitHub (Nov 4, 2017):
This was missing from the
dotnet newtemplate in Startup.cs.@robertmuehsig commented on GitHub (Nov 4, 2017):
I thought those lines are more or less required to run a ASP.NET Core app or is this just a bug with the templates?
@Petermarcu commented on GitHub (Nov 4, 2017):
They are required to run an MVC app.
dotnet new webis supposed to just be a blank app. Does Electron.NET assume mvc?@Petermarcu commented on GitHub (Nov 4, 2017):
I'm guessing it would have worked fine if I did
dotnet new mvc.@robertmuehsig commented on GitHub (Nov 4, 2017):
Ah - currently yes, because we use it to serve the HTML pages that the Electron part is showing.
@Petermarcu commented on GitHub (Nov 4, 2017):
Looking at the getting started "configure method", my question is answered.
I'll close this issue unless you want to add a note to the readme to mention that mvc is required and to make sure those lines are in the Startup.cs.
@robertmuehsig commented on GitHub (Nov 4, 2017):
I will add this that we require MVC - good input! Many thanks!
@Petermarcu commented on GitHub (Nov 4, 2017):
No problem.
@robertmuehsig commented on GitHub (Nov 4, 2017):
I'm closing this one - ok?
@Petermarcu commented on GitHub (Nov 4, 2017):
👍