'.Net MAUI and Blazor web assembly shareable code errors in macos and ios

I am trying to run a .NET MAUI Blazor template project and adding its dependency to A blazor web assembly template on Mac machine but I am facing issue while building the project

/usr/local/share/dotnet/sdk/6.0.202/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5): Error NETSDK1005: Assets file '/Users/apple/Desktop/ARTHURXCODE/Health/Portal/Shared/obj/project.assets.json' doesn't have a target for 'net6.0'. Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project. (NETSDK1005) (Portal.Shared)

also wanted to know does maui template has any limitation while a .net core project is added as its dependency?

IDE used is VS 2022 latest preview for Mac and Xcode 13 beta



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source