electronize init
9.31.2 net core 3.1
- Version:
- Target:
- Error when running electronize init
Unhandled exception. System.AggregateException: One or more errors occurred. (Path cannot be null. (Parameter 'path'))
mac os
.NET Core SDK (reflecting any global.json):
Version: 3.1.409
Commit: 217439b5ae
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.16
OS Platform: Darwin
RID: osx.10.16-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.409/
Host (useful for support):
Version: 3.1.15
Commit: dc339bd0fb
.NET Core SDKs installed:
3.1.409 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Local packages:
$ dotnet list package
Project '***' has the following package references
[netcoreapp3.1]:
Top-level Package Requested Resolved
> AntDesign 0.8.1 0.8.1
> ElectronNET.API 9.31.2 9.31.2
> Microsoft.EntityFrameworkCore.Sqlite 5.0.6 5.0.6
> Microsoft.EntityFrameworkCore.Tools 5.0.6 5.0.6
Running dotnet run electronize init does not generate electron.manifest.json.
Instead a localhost instance is launched.
dotnet electronize init
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.<ExecuteAsync>b__13_0() in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\InitCommand.cs:line 88
at System.Threading.Tasks.Task1.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.Task1.get_Result() at ElectronNET.CLI.Program.Main(String[] args) in C:\_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59
The 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?
🎉🚀 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!
Boa noite , estou tendo o mesmo poblema ,como você adicionei a API ao projeto e o projeto ?