mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Path cannot be null on init #311
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 @sporeservant on GitHub (May 11, 2019).
Using VS 2019, .net core 2.1, Windows 10 Surface Pro on an ASP.NET Core app, when I run
electronize init(via command prompt) I receive the following error:There isn't anything in that message that makes it clear to me what might be going on here - just figured I would report it in here in case it makes sense to someone on the team :)
Thanks!
@sporeservant commented on GitHub (May 14, 2019):
I am closing this ticket as I am pretty certain the issue was that I was using Pages template rather than MVC template, although it could have been numerous other things. I was combining out-of-date usage instructions with up-to-date instructions.
@pgrudzien12 commented on GitHub (Jul 19, 2020):
I'm experiencing same issue. For me this is happening every time.
I'm creating new .net server-side blazor project on VS 2019. Then I added added ElectronizeNET.API nuget version 9.31.2 and entries to startup.cs and program.cs. The I run electronize init and get the error.
I'm using .net core version 3.1.
@mcmah309 commented on GitHub (Jul 20, 2020):
I am also experiencing this same issue
@weebs commented on GitHub (Aug 11, 2020):
Experiencing the same issue here on a WebAPI project
@goonzaah commented on GitHub (Sep 1, 2020):
I have te same issue Net Core 3.1 and ElectronizeNET.API nuget version 9.31.2
@goonzaah commented on GitHub (Sep 1, 2020):
I could resolve a problem. I m should be in the folder where are the Startup.cs and Program.cs when I execute this commands.
I expect that this resolve yours problems too.
@netpoetica commented on GitHub (Sep 17, 2020):
I recommend you guys open a new issue and provide as much detail as possible. It has been a long time since I personally saw this issue, and I don't recall specifically what the issue was or how I solved it.
@aliyss commented on GitHub (Oct 10, 2020):
So here's the thing:
At the following step:
At the first time, you need an Electron.NET project initialization. Type the following command in your ASP.NET Core folder:
Be sure you cd to the correct folder in advance:
So if your folder structure is:
Then in the Terminal do this:
@QuinnSapp26 commented on GitHub (May 12, 2021):
@goonzaah That solution worked for me! (I have an ASP.NET Web Application MVC).
Just to reiterate the answer:
cd into the directory containing Program.cs and Startup.cs and run
electronize initin there.