Compatibility Issue with Esri.ArcGISRuntime NuGet Package and .NET 8.0

588
2
12-28-2023 09:46 AM
Labels (3)
deeprey
New Contributor II

Hello Esri Community,

I am encountering a compatibility issue while setting up a WPF application using the Esri.ArcGISRuntime SDK. My project targets .NET 8.0, but I keep receiving the following error:

The 'Esri.ArcGISRuntime' nuget package cannot be used to target 'net8.0-windows' for output type 'WinExe'. Only platform-agnostic class libraries or Windows, iOS, and Android platforms are supported.

According to the official Esri documentation, .NET 8 is required for developing WPF for .NET applications. However, I am struggling to resolve this error. Has anyone else faced this issue? Any guidance on how to correctly set up a WPF project targeting .NET 8 with the Esri ArcGIS Runtime SDK would be greatly appreciated.

Thank you in advance for your help!

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

Change your target from 'net8.0-windows' to 'net8.0-windows10.0.19041.0'

0 Kudos
deeprey
New Contributor II

sorted.
Your help is much appreciated!

0 Kudos