ElectronNET.CLI 13.5.1 nuget package won't install, saying it's not compatible with net5.0 #680

Closed
opened 2026-01-29 16:45:52 +00:00 by claunia · 1 comment
Owner

Originally created by @gregvinyard on GitHub (Jul 13, 2021).

  • Version:
  • ElectronNET.CLI 13.5.1
  • .NET Core 5.0
  • Visual Studio Community 2019 16.10.3

When I try to add the ElectronNET.CLI 13.5.1 nuget package to a brand new ASP.NET Core Web App project, I get the following error. The error says it's not compatible with net5.0 and instead I need net5.0.

Restoring packages for C:\Users\greg\source\repos\WebApplication3\WebApplication3.csproj...
NU1202: Package ElectronNET.CLI 13.5.1 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package ElectronNET.CLI 13.5.1 supports: net5.0 (.NETCoreApp,Version=v5.0) / any
NU1212: Invalid project-package combination for ElectronNET.CLI 13.5.1. DotnetToolReference project style can only contain references of the DotnetTool type
Package 'ElectronNET.CLI 13.5.1' has a package type 'DotnetTool' that is not supported by project 'WebApplication3'.
Time Elapsed: 00:00:00.0550339
========== Finished ==========

Steps to Reproduce:

  1. Create a new ASP.NET Core Web App using .NET 5.0 as the target framework
  2. Use NuGet Package Manager to try and install ElectronNET.CLI 13.5.1
Originally created by @gregvinyard on GitHub (Jul 13, 2021). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: * ElectronNET.CLI 13.5.1 * .NET Core 5.0 * Visual Studio Community 2019 16.10.3 <!-- Enter your issue details below this comment. --> When I try to add the ElectronNET.CLI 13.5.1 nuget package to a brand new ASP.NET Core Web App project, I get the following error. The error says it's not compatible with net5.0 and instead I need net5.0. > Restoring packages for C:\Users\greg\source\repos\WebApplication3\WebApplication3.csproj... > **NU1202: Package ElectronNET.CLI 13.5.1 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package ElectronNET.CLI 13.5.1 supports: net5.0 (.NETCoreApp,Version=v5.0) / any** > NU1212: Invalid project-package combination for ElectronNET.CLI 13.5.1. DotnetToolReference project style can only contain references of the DotnetTool type > Package 'ElectronNET.CLI 13.5.1' has a package type 'DotnetTool' that is not supported by project 'WebApplication3'. > Time Elapsed: 00:00:00.0550339 > ========== Finished ========== Steps to Reproduce: 1. Create a new ASP.NET Core Web App using .NET 5.0 as the target framework 2. Use NuGet Package Manager to try and install ElectronNET.CLI 13.5.1
claunia added the bug label 2026-01-29 16:45:52 +00:00
Author
Owner

@gregvinyard commented on GitHub (Jul 13, 2021):

D'oh... I'm new to installing CLI tools from nuget. Didn't read the docs thoroughly and didn't realize I can't add this to a project like other nuget packages.
Running "dotnet tool update ElectronNET.CLI -g" from a command line worked fine.

Sorry to bother you!

@gregvinyard commented on GitHub (Jul 13, 2021): D'oh... I'm new to installing CLI tools from nuget. Didn't read the docs thoroughly and didn't realize I can't add this to a project like other nuget packages. Running "dotnet tool update ElectronNET.CLI -g" from a command line worked fine. Sorry to bother you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#680