[BUG] Windows map package not working with .NET 8 Preview
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Did you read the “Reporting a bug” section on Contributing file?
- I have read the “Reporting a bug” section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
Getting this error upon App launch on the Windows platform configured with Maps.
“Method not found: ‘Void Microsoft.Maui.Platform.MauiWebView…ctor()’.”
Expected Behavior
Quite like .NET 7, the app is expected to launch with the Maps view loaded on the underlying WebView.
Steps To Reproduce
- Created an MAUI app on .NET 8 Preview 5
- Added the newly released “CommunityToolkit.Maui.Maps” NuGet package
- Chained the extension method in the App startup
- Set Windows as the target platform and tried to launch the app
Link to public reproduction project repository
Default template of .NET 8 is suffice, just add Map control to the Main page
Environment
- .NET MAUI CommunityToolkit: 1.0.0 (CommunityToolkit.Maui.Maps package)
- OS: Windows 11 (10.0.22621.1778)
- .NET MAUI:.NET MAUI on .NET 8 Preview 5 (8.0.0-preview.5.8529)
Anything else?
It works fine on .NET 7, facing this issue only on .NET 8.
Issue Analytics
- State:
- Created 3 months ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Announcing .NET 8 Preview 3
NET 8 Preview 3 is now available. It includes changes to build paths, workloads, Microsoft.Extensions, and containers.
Read more >What's new in .NET 8 Preview 1 · Issue #8133 · dotnet/core
What's new in .NET 8 Preview 1. This issue is for teams to highlight work for the community that will release in .NET...
Read more >Recent Microsoft .NET Update Resulting in ArcGIS Pro 2.8 ...
This issue is caused by an update in the .NET 4.8.x framework and only affects ArcGIS Pro 2.8.x and 2.9.x users who have...
Read more >How to fix "The analyzer assembly references version '4.7. ...
From Select the .NET version to use doc: The SDK uses the latest installed version. SDK commands include dotnet new and dotnet run...
Read more >Cannot debug net6.0-macos Apps - Developer Community
This is a regression. I can no longer debug net6.0-macos apps. It also fails for net6.0-maccatalyst apps. When I hit debug, the following ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@egvijayanand we didn’t test it with the preview, we test things with the stable .NET MAUI bits, that is why it wasn’t in there. We weren’t aware. Thanks for testing it, it’s in the release notes now.
And no one here is expecting everything to work in the preview release, just to know whether it’s supported or not.
If there’s a mention, no one would touch that part.