mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Build instructions in readme.md are complicated and don't work -- please provide a VS project template. #143
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 @BrainSlugs83 on GitHub (Apr 13, 2018).
Originally assigned to: @robertmuehsig on GitHub.
Using VS 2017 15.6.4, I created a new .NET Core MVC app.
I followed build instructions up to the
ElectronNET.CLInuget package part (which is super ambiguous).I added the
DotNetCliToolReferenceto my .csproj like so (it didn't say to remove the other ones, so I left them alone):dotnet restoredid not add the CLI package that I just added.and manually calling
Install-Package ElectronNET.CLI -Version 0.0.9fails because it's not compatible with this project type:Install-Package : Package 'ElectronNET.CLI 0.0.9' has a package type 'DotnetCliTool' that is not supported by project 'ElectronTest'.(Also requiring folks to hand edit a .csproj is kind of wacky -- please just provide a visual studio template.)
Trying to run the project, it opens a chrome web browser up to the site (not an electron window).
Further details,
program.cs:startup.cs:@BrainSlugs83 commented on GitHub (Apr 13, 2018):
Additionally, I tried:
which fails with
No executable found matching command "dotnet-electronize".@BrainSlugs83 commented on GitHub (Apr 13, 2018):
Finally, I also tried:
which fails on the last command
dotnet electronize startwith:@GregorBiswanger commented on GitHub (Apr 14, 2018):
Hi @BrainSlugs83
I don´t know why
dotnet restoredoes not install the CLI.Do you have installed .NET Core 2.0 or 2.1 Beta etc.?!
@robertmuehsig any idea?
The last comment with the electron.net api demos app have a other problem. The CLI detects a installed electron, but the electron is not installed. Try to execute
npm install electron --globaland start the samples app again.@bravecobra commented on GitHub (Aug 5, 2018):
Same issue here
@laurensstrydom-WDFC commented on GitHub (Aug 27, 2018):
Fairly easy to reproduce, happens when one includes
ElectronNET.CLI as a PackageReference instead of DotNetCliToolReference.
@bravecobra , @GregorBiswanger , @BrainSlugs83.
@paillave commented on GitHub (Dec 6, 2018):
I face the same issue, I'm on .net core 2.1
morevover, if I add the following in my csproj:
<ItemGroup> <DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.10" /> </ItemGroup>then run
dotnet restoreI get the following:
@paillave commented on GitHub (Dec 6, 2018):
actually, it works when
actually it works when I call
electronizeinstead ofdotnet electronizeeither the installation is not correctly accepted, either the documentation is not up to date@robertmuehsig commented on GitHub (Dec 7, 2018):
With Version 0.0.10 you need to remove the DotNetCliToolReference in your .csproj and install it as a global tool like this:
@paillave commented on GitHub (Dec 8, 2018):
I did this already, as it is instructions that are mentioned and that I followed letter by letter... Still it didn't work: dotnet command doesn't recognize
electronizeeven if it is installed globally like you reminded, and even if it is not in the csproj file like you reminded as well.@ruohki commented on GitHub (Dec 24, 2018):
same issue on a freshly installed windows / VS2017
edit using 0.0.9 works however
@robertmuehsig commented on GitHub (Jan 3, 2019):
We updated the readme.
The DotNetCliToolReference is "old" - the new style requires to install it as a global tool:
After that you should be able to invoke like this (in the same folder as the .csproj file)
Hope this helps!
@LukeTOBrien commented on GitHub (Jul 6, 2020):
@robertmuehsig This should be on your main documentation (if you can call a readme main documentation), I just had and same thing and came to this issue after a Google search - Everyone who uses Electron.NET is going to have the same issue