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!
Change your target from 'net8.0-windows' to 'net8.0-windows10.0.19041.0'
sorted.
Your help is much appreciated!