mrlacey / MauiAppAccelerator

A Visual Studio extension to accelerate the creation of new .NET MAUI apps.
https://marketplace.visualstudio.com/items?itemName=MattLaceyLtd.MauiAppAccelerator
MIT License
351 stars 10 forks source link

conflicting versions (CommunityToolkit.Maui.Maps) #50

Closed eduardoagr closed 2 weeks ago

eduardoagr commented 2 months ago

Describe the bug I made an app with your plug-in, I tried to install the Community maps for Maui package, and for some reason it did not work, I kept getting

FileNotFoundException: Could not load file or assembly 'WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system cannot find the file specified.

To Reproduce Steps to reproduce the behavior:

  1. Create an application using this plugin and select mvvm, etc
  2. Install CommunityToolkit.Maui.Maps
  3. Try to run it on Windows
  4. See error

Expected behavior them map displayed on Windows Screenshots image

Versions (please complete the following information):

Additional context If you create an app normally, without using this, it would work

mrlacey commented 1 month ago

Will fix this in the next release (> 1.6)

For (my) reference: https://www.nuget.org/packages/CommunityToolkit.Maui.Maps https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/map?view=net-maui-8.0 https://learn.microsoft.com/en-gb/dotnet/communitytoolkit/maui/views/map

mrlacey commented 3 weeks ago

v1.6.1 will include the Community Toolkit Maps package to enable Windows support. However, I'm not sure this will address your issue as I was unable to recreate it.

Can you run a generated app on Windows if you don't include the Maps page? Can you create a new WinUI3 app and run that without issue?

mrlacey commented 2 weeks ago

Please Reopen if you can reproduce or provide more details as per the previous comment.