To allow for more flexibility the AspNetCore dependency (Sdk="Microsoft.NET.Sdk.Web" in the project file) should be moved ideally to a separate NuGet package. Platforms like Blazor WASM Android, iOS (and by extension MacCatalyst) cannot be built with a dependency on AspNetCore