mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Fails to start #209
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 @xlar54 on GitHub (Sep 21, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
I follow this tutorial:
https://www.youtube.com/watch?v=nuM6AojRFHk
And get:
C:\Users\me\work-csharp\myapp>dotnet electronize start
Start Electron Desktop Application...
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\me\work-csharp\myapp>dotnet publish -r win-x64 --output "C:\Users\me\work-csharp\myapp\obj\Host\bin"
Microsoft (R) Build Engine version 15.6.84.34536 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 56.89 ms for C:\Users\me\work-csharp\myapp\myapp.csproj.
Restore completed in 71.07 ms for C:\Users\me\work-csharp\myapp\myapp.csproj.
Restoring packages for C:\Users\me\work-csharp\myapp\myapp.csproj...
Restore completed in 1.16 sec for C:\Users\me\work-csharp\myapp\myapp.csproj.
Program.cs(23,18): error CS1061: 'IWebHostBuilder' does not contain a definition for 'UseElectron' and no extension method 'UseElectron' accepting a first argument of type 'IWebHostBuilder' could be found (are you missing a using directive or an assembly reference?) [C:\Users\me\work-csharp\myapp\myapp.csproj]
Startup.cs(54,19): error CS0103: The name 'Electron' does not exist in the current context [C:\Users\me\work-csharp\myapp\myapp.csproj]
C:\Users\me\work-csharp\myapp>
Error occurred during dotnet publish.