'.Net Maui Blazor and Blazor Web Assembly

can we add blazor web assembly project as a dependency or reference to . Net Maui Blazor project ,this approach worked fine for me on Android And Windows, but the application fails to build with below mentioned error

 Portal.Shared is not compatible with net6.0 (.NETCoreApp,Version=v6.0) / browser-wasm.
 Project Portal.Shared supports:
net6.0 android31.0(.NETCoreApp,Version=v6.0),
net6.0-ios15.2 (.NETCoreApp,Version=v6.0),
net6.0-maccatalyst15.2 (.NETCoreApp,Version=v6.0)
Restore failed .

for the above mentioned issue i have added the following lines

<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<UseMaui>true</UseMaui>

in the project which i was using as a dependency, but that dint work either . Is Maui still not supported by Mac Vs 2022 ? also can you Kindly make a sample app that works perfectly fine on all platforms which would help us to know MacOs and Ios support to Maui. Kindly help with a workaround.



Sources

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

Source: Stack Overflow

Solution Source