.NET Standard compatibility? #343

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

Originally created by @mig42 on GitHub (Jun 11, 2019).

Hi,

I'm currently studying how to use Electron.NET inside a Blazor application.

Following this tutorial I'm able to configure the appropriate dependencies in the server project (I'm using a client-side, ASP.NET-hosted solution) and use electronize to start the app and open the main window.

However, I can't use Electron.NET from the Client project. It must use netstandard2.0 as the target framework, and NuGet rejects the ElectronNET.API package when I try to add it:

C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client
λ  dotnet add package ElectronNET.API --version 5.22.12
  Writing C:\Users\miguel\AppData\Local\Temp\tmpCBC1.tmp
info : Adding PackageReference for package 'ElectronNET.API' into project 'C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj'.
info : Restoring packages for C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj...
error: Package ElectronNET.API 5.22.12 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package ElectronNET.API 5.22.12 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1)
error: Package 'ElectronNET.API' is incompatible with 'all' frameworks in project 'C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj'.

Is Electron.NET going to be available under .NET Standard 2.0 at some point?

Thanks!

Originally created by @mig42 on GitHub (Jun 11, 2019). Hi, I'm currently studying how to use Electron.NET inside a Blazor application. Following [this tutorial](https://maherjendoubi.io/blazor-electron/) I'm able to configure the appropriate dependencies in the server project (I'm using a [client-side, ASP.NET-hosted solution](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/blazor/client-side?view=aspnetcore-3.0#hosted-deployment-with-aspnet-core)) and use `electronize` to start the app and open the main window. However, I can't use Electron.NET from the Client project. It must use `netstandard2.0` as the target framework, and NuGet rejects the ElectronNET.API package when I try to add it: ``` C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client λ dotnet add package ElectronNET.API --version 5.22.12 Writing C:\Users\miguel\AppData\Local\Temp\tmpCBC1.tmp info : Adding PackageReference for package 'ElectronNET.API' into project 'C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj'. info : Restoring packages for C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj... error: Package ElectronNET.API 5.22.12 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package ElectronNET.API 5.22.12 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) error: Package 'ElectronNET.API' is incompatible with 'all' frameworks in project 'C:\Users\miguel\Code\blazor\blazorclienthosted\blazorclienthosted.Client\blazorclienthosted.Client.csproj'. ``` Is Electron.NET going to be available under .NET Standard 2.0 at some point? Thanks!
Author
Owner

@MaherJendoubi commented on GitHub (Jun 13, 2019):

Hi Miguel,

Electron.NET should be used inside the Server project since it is the startup project.

Best regards,
Maher

@MaherJendoubi commented on GitHub (Jun 13, 2019): Hi Miguel, Electron.NET should be used inside the Server project since it is the startup project. Best regards, Maher
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#343