-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug MAUI Blazor] "Microsoft.AspNetCore.App" not found for "maccatalyst-x64" #1619
Comments
Hi @dicong-Apption , it looks like the Askmethat.Aspnet.JsonLocalizer package requires Blazor WebAssembly, which I don't think is supported on these platforms. I looked at the code for that project and I'm not sure it really needs Blazor WebAssembly to begin with, because at least in the default case it doesn't seem to use anything from Blazor WebAssembly. There are a few Given that this seems to be an external issue, I am closing this issue. |
does this package |
Just tested it with preview 6, |
The package I don't know of a good way to just look at a package and know where it will run. BTW it's not so much about .NET MAUI or not. It's more about the OS/architecture. So in your case the package should work fine if you use .NET MAUI but only on Windows. |
ahh, makes sense |
@dicong-Apption no problem, this was an interesting issue to investigate. I recommend contacting the author of that package to see if they can change the reference to remove WebAssembly (and move the namespace |
Don't know if this can be helpfull to someone because it's probably a dumb mistake from my part, but the NuGet package |
Description
We are managing to transfer our existing Blazor server application into MAUI Blazor project. So far, we got the WinUI project building and working, which is really excited! But, for the main MAUI project, we had a runtime pack error for both mac and ios.
After some diggings, we think that the error appears after we add a nuget package like
Askmethat.Aspnet.JsonLocalizer (3.1.1)
orMicrosoft.AspNetCore.Mvc.NewtonsoftJson (6.0.0-preview.5.21301.17)
I am wondering what could be the reason here? and what can we do to avoid having this issue?
Steps to Reproduce
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0-preview.5.21301.17" />
or
<PackageReference Include="Askmethat.Aspnet.JsonLocalizer" Version="3.1.1" />
Actual Behavior
Basic Information
Microsoft Visual Studio Professional 2019 Preview
Version 16.11.0 Preview 2.0
dotnet --version
6.0.100-preview.5.21302.13
maui-check is clean
the main csproj file if you are curisou,
The text was updated successfully, but these errors were encountered: