mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
electronize init #663
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 @bbhxwl on GitHub (May 18, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
9.31.2 net core 3.1
Unhandled exception. System.AggregateException: One or more errors occurred. (Path cannot be null. (Parameter 'path'))
@magom001 commented on GitHub (May 22, 2021):
mac os
Local packages:
Running
dotnet run electronize initdoes not generateelectron.manifest.json.Instead a localhost instance is launched.
@mbparker commented on GitHub (Jun 20, 2021):
dotnet electronize init
@mbielski commented on GitHub (Jun 8, 2022):
I am having this same issue. Output is:
`PS C:\Users\micha\source\repos\ElectronTest> electronize init
Arguments:
Adding our config file to your project...
Search your .csproj/fsproj to add the needed electron.manifest.json...
Found your : - check for existing config or update it.
Unhandled exception. System.AggregateException: One or more errors occurred. (Path cannot be null. (Parameter 'path'))
---> System.ArgumentNullException: Path cannot be null. (Parameter 'path')
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access)
at ElectronNET.CLI.Commands.InitCommand.EditProjectFile(String projectFile) in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\InitCommand.cs:line 166
at ElectronNET.CLI.Commands.InitCommand.<>c.b__13_0() in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\InitCommand.cs:line 88
at System.Threading.Tasks.Task
1.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)at System.Threading.Tasks.Task
1.get_Result() at ElectronNET.CLI.Program.Main(String[] args) in C:\_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59The main problem that I can see is that the C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\ folder does not exist on my machine. I've installed the CLI globally, added the API to the project, and the project builds fine. Electron appears to be looking for paths that do not exist but maybe should?
@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!
@ghost commented on GitHub (Sep 4, 2023):
Boa noite , estou tendo o mesmo poblema ,como você adicionei a API ao projeto e o projeto ?
@LapinskasL commented on GitHub (Jun 24, 2024):
@GregorBiswanger I'm still having an issue with it. I'm on .NET 8 with MVC and
electronize initstill throws System.AggregateException: One or more errors occurred. (Path cannot be null. (Parameter 'path')).However, it does generate the electron.manifest.json file in the solution folder, but then
electronize startthrows an error about it not being able to find the module, meaning the electron.manifest.json file.