Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

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

Open f4n0 opened this issue 3 years ago • 7 comments

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?

f4n0 avatar Jun 22 '22 07:06 f4n0

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 avatar Jun 29 '22 20:06 bknoxphysna

I hope it will be merged soon!

f4n0 avatar Jul 06 '22 13:07 f4n0

Hi Guys,

Here the same issue.

brandochn avatar Jul 15 '22 23:07 brandochn

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 avatar Jul 28 '22 01:07 Mr-Technician

.net5 is out of support since May 10.

The CLI should be updated to .net6 asap!

delasource avatar Aug 11 '22 14:08 delasource

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 avatar Aug 11 '22 16:08 GregorBiswanger

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 avatar Sep 13 '22 17:09 bigredhdl

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

dnviti avatar Nov 02 '22 19:11 dnviti

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

rthm93 avatar Nov 10 '22 03:11 rthm93

Same issue here... please publish to nuget!

retvari avatar Nov 22 '22 07:11 retvari

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

theolivenbaum avatar Nov 24 '22 15:11 theolivenbaum

@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 avatar Nov 24 '22 15:11 GregorBiswanger

Hi @GregorBiswanger, which error you mean?

theolivenbaum avatar Nov 24 '22 16:11 theolivenbaum

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

brandochn avatar Nov 25 '22 16:11 brandochn

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 avatar Mar 13 '23 13:03 yuriiproniuk

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

GregorBiswanger avatar Mar 13 '23 15:03 GregorBiswanger

🎉🚀 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 avatar Mar 28 '23 10:03 GregorBiswanger