'System.BadImageFormatException in uwp after updating version

i have updated Esri.ArcGISRuntime from 100.8.0.0 to 100.13.0.0 and its dependency xamarinforms updated to 5.0.0.2337 the why this exception while running the app. how to solve this error

System.BadImageFormatException: Could not load file or assembly 'Esri.ArcGISRuntime.Toolkit.Xamarin.Forms, Version=100.13.0.0, Culture=neutral, PublicKeyToken=null'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058) ---> System.BadImageFormatException: Cannot load a reference assembly for execution. --- End of inner exception stack trace --- at MyApp.UWP.App.OnLaunched(LaunchActivatedEventAr



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source