mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Not able to run F# Core MVC projects #533
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 @kojo12228 on GitHub (Jul 19, 2020).
.NET Core Version: 3.1
Node.js Version: 12.13.0
First of all, this is a very interesting project that I'm excited to experiment with for building small projects.
The application doesn't work for F# ASP.NET Core MVC applications, or Blazor (using Bolero). While
electronize initthrows an exception due to only.csprojprojects being searched, manually filling the fields of the manifest file to match an equivalent C# project causedelectronize startto hang just after outputtingstdout: Use Electron Port:Steps to Reproduce:
dotnet new mvc -lang F#dotnet add package ElectronNET.APIwebBuilder.UseElectron(args) |> ignoreto Program.fsasync { do! Electron.WindowManager.CreateWindowAsync() |> Async.AwaitTask |> Async.Ignore }to Startup.fselectronize init, manually correct "executable", "name", "apiId" and "projectName" to match equivalent C# projectCopyToOutputDirectoryforelectron.manifest.jsonin*.fsprojelectronize start@kojo12228 commented on GitHub (Jul 22, 2020):
I realised that step 4 didn't actually run the async code, so it should be:
I'll make a pull request to fix the
electronize initissue with .fsproj projects.