Skip to content

Not able to run F# Core MVC projects #452

@kojo12228

Description

@kojo12228
  • Version: 9.31.2

.NET Core Version: 3.1
Node.js Version: 12.13.0

  • Target: Windows (10)

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 init throws an exception due to only .csproj projects being searched, manually filling the fields of the manifest file to match an equivalent C# project caused electronize start to hang just after outputting stdout: Use Electron Port:

Steps to Reproduce:

  1. Run dotnet new mvc -lang F#
  2. Add ElectronNET project with dotnet add package ElectronNET.API
  3. Add webBuilder.UseElectron(args) |> ignore to Program.fs
  4. Add async { do! Electron.WindowManager.CreateWindowAsync() |> Async.AwaitTask |> Async.Ignore } to Startup.fs
  5. Run electronize init, manually correct "executable", "name", "apiId" and "projectName" to match equivalent C# project
  6. Add CopyToOutputDirectory for electron.manifest.json in *.fsproj
  7. Run electronize start

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions