Select to view content in your preferred language

MapView does not exist in namespace http://schemas.esri.com/arcgis/runtime/2013

368
2
4 weeks ago
CarolSchmutzler
New Contributor

Hi Community,

I'm just trying to create an initial app from the available tutorials.

I'm utilizing VS 2022, Windows 11, I've installed ArcGIS_Maps_SDK_DotNet_200_7_0.vsix.

I've added the ESRI.ArcGISRuntime.WPF nuget package but the app is not recognizing MapView as a namespace.  I read in older versions of the nuget package there were issues but that was years ago.

I'm guessing I'm missing another nuget package or I need some other install from .vsiz?

Thanks for any suggestions,

Carol 

End goal is to utilize the the offline maps.

https://developers.arcgis.com/net/maps-2d/tutorials/display-a-map/

https://developers.arcgis.com/net/offline-maps-scenes-and-data/tutorials/display-an-offline-map-on-d...

0 Kudos
2 Replies
pnarkhede
Esri Contributor

Hi Carol,

A few quick tips to solve this issue:

  • Make sure the declared namespace at the top of your XAML exactly matches the MapView tag.
  • Try cleaning and rebuilding your solution to make sure Visual Studio isn’t using an out-of-date build.
  • If you hit design-time errors, close and reopen the XAML file, or restart Visual Studio. Also, check you don’t have any conflicting ArcGISRuntime packages installed.
  • Confirm your project’s target framework is .NET 8 or higher, as required for the latest SDK.

If you still run into trouble, please provide a minimal sample so I can help diagnose the issue directly.

Good luck with your project!

0 Kudos
dotMorten_esri
Esri Notable Contributor

Also make sure you target `net8.0-windows10.0.19041` or higher with the explicit windows version in the target framework. A new WPF project typically just specifies `net8.0-windows` which is equivalent to Windows 7. We require at least `10.0.19041`.

Btw you don't need to install `ArcGIS_Maps_SDK_DotNet_200_7_0.vsix`. That just gives you a local nuget repo of the packages (for offline scenarios), but they are on nuget.org so they'll just pull from there instead.

0 Kudos