I have been following the instructions on the Electron.NET Github page https://github.com/ElectronNET/Electron.NET and I have been running into an issue. When I have run the commands in VS Code the Electron code still is not recognised. E.g.
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseElectron(args)
.UseStartup<Startup>()
.Build();
When using this snippit of code my IDE doesn't recognise the .UseElectron(args) part of the code
Is there something I am doing wrong or a step I have missed? I made sure to run the following commands
dotnet new mvc
dotnet add package ElectronNet.API
and changing the .csproj file to include
<ItemGroup>
<DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.9" />
</ItemGroup>
and running dotnet restore. If there is any way of figuring out what step I have missed out please let me know.