The framework version '5.0.0' (x64) was not found. But 6.0.6 is installed #806

Closed
opened 2026-01-29 16:49:06 +00:00 by claunia · 17 comments
Owner

Originally created by @f4n0 on GitHub (Jun 22, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

Hi,
I've created a pipeline for my project.
I've installed Electron.Net and Electron.Net.CLI but when I try to Electronize it throws me:

Tool 'electronnet.cli' (version '13.5.1') was successfully installed.
Executing Electronize
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found.

  • The following frameworks were found:
    6.0.6 at [C:\hostedtoolcache\windows\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

My project is NET6, locally I can build it without any problem, is there something I can do?

Originally created by @f4n0 on GitHub (Jun 22, 2022). Originally assigned to: @GregorBiswanger on GitHub. Hi, I've created a pipeline for my project. I've installed Electron.Net and Electron.Net.CLI but when I try to Electronize it throws me: Tool 'electronnet.cli' (version '13.5.1') was successfully installed. Executing Electronize It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found. - The following frameworks were found: 6.0.6 at [C:\hostedtoolcache\windows\dotnet\shared\Microsoft.NETCore.App] You can resolve the problem by installing the specified framework and/or SDK. My project is NET6, locally I can build it without any problem, is there something I can do?
claunia added the bug label 2026-01-29 16:49:06 +00:00
Author
Owner

@bknoxphysna commented on GitHub (Jun 29, 2022):

The latest version of the electronnet.cli published to nuget doesn't work with net6.0, it is only built for net5.0. You have to build in the ElectronNET.CLI directory from master in this repo.

@GregorBiswanger I recognize you may be busy so no worries! I'm wondering if we can have a working build of the repo for apple silicon and .net6.0. Do you have some time to look into this?

Here is a PR I opened that is related to this: https://github.com/ElectronNET/Electron.NET/pull/706

@bknoxphysna commented on GitHub (Jun 29, 2022): The latest version of the `electronnet.cli` published to nuget doesn't work with net6.0, it is only built for net5.0. You have to build in the `ElectronNET.CLI` directory from master in this repo. @GregorBiswanger I recognize you may be busy so no worries! I'm wondering if we can have a working build of the repo for apple silicon and .net6.0. Do you have some time to look into this? Here is a PR I opened that is related to this: https://github.com/ElectronNET/Electron.NET/pull/706
Author
Owner

@f4n0 commented on GitHub (Jul 6, 2022):

I hope it will be merged soon!

@f4n0 commented on GitHub (Jul 6, 2022): I hope it will be merged soon!
Author
Owner

@brandochn commented on GitHub (Jul 16, 2022):

Hi Guys,

Here the same issue.

@brandochn commented on GitHub (Jul 16, 2022): Hi Guys, Here the same issue.
Author
Owner

@Mr-Technician commented on GitHub (Jul 28, 2022):

The latest version of the electronnet.cli published to nuget doesn't work with net6.0, it is only built for net5.0. You have to build in the ElectronNET.CLI directory from master in this repo.

What do you mean by this? That I need to build my code within this existing repository?

@Mr-Technician commented on GitHub (Jul 28, 2022): > The latest version of the `electronnet.cli` published to nuget doesn't work with net6.0, it is only built for net5.0. You have to build in the `ElectronNET.CLI` directory from master in this repo. What do you mean by this? That I need to build my code within this existing repository?
Author
Owner

@delasource commented on GitHub (Aug 11, 2022):

.net5 is out of support since May 10.

The CLI should be updated to .net6 asap!

@delasource commented on GitHub (Aug 11, 2022): .net5 is [out of support since May 10](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core). The CLI should be updated to .net6 asap!
Author
Owner

@GregorBiswanger commented on GitHub (Aug 11, 2022):

Currently there are still errors when running from the current status. We had a major PR #681 and need to find out what the problem is. Maybe one of you will find something.

@GregorBiswanger commented on GitHub (Aug 11, 2022): Currently there are still errors when running from the current status. We had a major PR #681 and need to find out what the problem is. Maybe one of you will find something.
Author
Owner

@bigredhdl commented on GitHub (Sep 13, 2022):

Just checking in here. I see PR #681 is merged, but is there still an outstanding issue before a .net 6 CLI can be published to nuget? I'm trying to get a blazor app we upgraded to .net 6 working again, but my app is failing to launch. I also tried a quick:

dotnet new blazorserver
electronize init
electronize start

using my own build of the CLI, but that didn't work either.

@bigredhdl commented on GitHub (Sep 13, 2022): Just checking in here. I see PR #681 is merged, but is there still an outstanding issue before a .net 6 CLI can be published to nuget? I'm trying to get a blazor app we upgraded to .net 6 working again, but my app is failing to launch. I also tried a quick: > dotnet new blazorserver > electronize init > electronize start using my own build of the CLI, but that didn't work either.
Author
Owner

@dnviti commented on GitHub (Nov 2, 2022):

This error still occurs to this date... if the PR has been succesfully merged, what is blocking the new patch release?

@dnviti commented on GitHub (Nov 2, 2022): This error still occurs to this date... if the PR has been succesfully merged, what is blocking the new patch release?
Author
Owner

@rthm93 commented on GitHub (Nov 10, 2022):

I am using electronnet.cli 13.5.1, still having the same issue.

@rthm93 commented on GitHub (Nov 10, 2022): I am using electronnet.cli 13.5.1, still having the same issue.
Author
Owner

@retvari commented on GitHub (Nov 22, 2022):

Same issue here... please publish to nuget!

@retvari commented on GitHub (Nov 22, 2022): Same issue here... please publish to nuget!
Author
Owner

@theolivenbaum commented on GitHub (Nov 24, 2022):

Meanwhile you can use this package, it is built targeting net70: https://www.nuget.org/packages/h5.ElectronNET.CLI/

@theolivenbaum commented on GitHub (Nov 24, 2022): Meanwhile you can use this package, it is built targeting net70: https://www.nuget.org/packages/h5.ElectronNET.CLI/
Author
Owner

@GregorBiswanger commented on GitHub (Nov 24, 2022):

@theolivenbaum Can you please check the repository, after your pr we got another error. When that is fixed, we can finally publish the new release with .net 7 support in general

@GregorBiswanger commented on GitHub (Nov 24, 2022): @theolivenbaum Can you please check the repository, after your pr we got another error. When that is fixed, we can finally publish the new release with .net 7 support in general
Author
Owner

@theolivenbaum commented on GitHub (Nov 24, 2022):

Hi @GregorBiswanger, which error you mean?

@theolivenbaum commented on GitHub (Nov 24, 2022): Hi @GregorBiswanger, which error you mean?
Author
Owner

@brandochn commented on GitHub (Nov 25, 2022):

Hi @theolivenbaum, I think the error @GregorBiswanger mentionded is this #681

@brandochn commented on GitHub (Nov 25, 2022): Hi @theolivenbaum, I think the error @GregorBiswanger mentionded is this #681
Author
Owner

@yuriiproniuk commented on GitHub (Mar 13, 2023):

Hello @GregorBiswanger @theolivenbaum , do I understand correctly that for apps targeting .NET 6 and higher from now on should be used https://github.com/theolivenbaum/electron-sharp and Electron.NET is not going to support targeting .NET 6?

@yuriiproniuk commented on GitHub (Mar 13, 2023): Hello @GregorBiswanger @theolivenbaum , do I understand correctly that for apps targeting .NET 6 and higher from now on should be used https://github.com/theolivenbaum/electron-sharp and Electron.NET is not going to support targeting .NET 6?
Author
Owner

@GregorBiswanger commented on GitHub (Mar 13, 2023):

@yuriiproniuk A new Electron.NET Update with .NET 7 Support is coming the next days

@GregorBiswanger commented on GitHub (Mar 13, 2023): @yuriiproniuk A new Electron.NET Update with .NET 7 Support is coming the next days
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#806