dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

Apple M1 Pro framework bug

Open NetMajom opened this issue 3 years ago • 12 comments

Hello

I have installed everything well, manually also installed the required packages, but still have this issue

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.0-rc.2.21480.5 at [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]

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

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.0&arch=x64&rid=osx.11.0-x64
   

Please help to solve this issue.

Or/if it cannot be solved, does it has any uninstalling sequence?

NetMajom avatar Oct 14 '21 05:10 NetMajom

Uh the workload is for targeting .NET 6 so try something like net6.0-maccatalyst as a target framework and see if the issue goes away.

AraHaan avatar Oct 14 '21 05:10 AraHaan

Do you know how/where can I set this?

Uh the workload is for targeting .NET 6 so try something like net6.0-maccatalyst as a target framework and see if the issue goes away.

Do you know how/where can I set this?

NetMajom avatar Oct 14 '21 06:10 NetMajom

In your csproj file.

AraHaan avatar Oct 14 '21 07:10 AraHaan

In your csproj file.

Ok, but because of this error the maui-check not finished well, and I think because of this in VS 2022 Preview the maui project not showing, only Xamarin.

So, I can't change it in maui project csproj file, because the maui option is missing in VS...

NetMajom avatar Oct 14 '21 09:10 NetMajom

Open it in Notepad.

AraHaan avatar Oct 14 '21 13:10 AraHaan

Open it in Notepad.

Yeah, its funny. What file? If you can't create a new project because the maui-check failed, with vs preview the whole project is missing, than open in notepad that file what you can't create, and what is not exist?

I need the maui check command finish well.

So, once again. The maui check command give me that error, help me to solve, that the maui check command can be finish well.

NetMajom avatar Oct 15 '21 05:10 NetMajom

Ah that is because the tool depends on the runtime from .NET 5. It even gave you the link on where to download and install it.

AraHaan avatar Oct 15 '21 06:10 AraHaan

Yes, I installed it 3 times in Mac m1, restarted the system, etc... but this error appearing again, and again. So the maui-check not recognised the installed .NET 5

NetMajom avatar Oct 15 '21 06:10 NetMajom

hmm I wonder if it's because the M1 is arm based and if so this tool might actually need to be retargeted to .NET 6 to fix it.

AraHaan avatar Oct 15 '21 07:10 AraHaan

hmm I wonder if it's because the M1 is arm based and if so this tool might actually need to be retargeted to .NET 6 to fix it.

OK. Do you know any workaround when//how can it be retargeted?

NetMajom avatar Oct 16 '21 05:10 NetMajom

Step 1: Fork this repository. Step 2: Clone that fork. Step 3: Open the projects in Visual Studio or Rider and change their target frameworks from .NET 5 to .NET 6 by right clicking each project and changing <TargetFramework>net5.0</TargetFramework> to <TargetFramework>net6.0</TargetFramework>. Step 4: Commit. Step 5: Create Pull Request :smile:

AraHaan avatar Oct 16 '21 16:10 AraHaan

me too, how to fix it?

Snsaiu avatar Oct 26 '21 02:10 Snsaiu