question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Windows map package not working with .NET 8 Preview

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the “Reporting a bug” section on Contributing file?

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

  1. Created an MAUI app on .NET 8 Preview 5
  2. Added the newly released “CommunityToolkit.Maui.Maps” NuGet package
  3. Chained the extension method in the App startup
  4. 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:closed
  • Created 3 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jfversluiscommented, Jun 14, 2023

@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.

1reaction
egvijayanandcommented, Jun 14, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found