Trouble loading assembly Esri.ArcGISRuntime.Xamarin.Forms in .NET Core 3.1 test project

1475
2
Jump to solution
04-02-2020 06:31 PM
FelicityRhone
New Contributor III

I'm getting this exception at run-time when trying to run unit tests referencing the ArcGIS Runtime 100.7 in a .NET Core Version 3.1 test project:  

System.BadImageFormatException: Could not load file or assembly 'Esri.ArcGISRuntime.Xamarin.Forms, Version=100.7.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. Reference assemblies should not be loaded for execution.  They can only be loaded in the Reflection-only loader context. (0x80131058) ---> System.BadImageFormatException: Cannot load a reference assembly for execution.  
Has anyone else experienced this? Any ideas how to fix/work around it? I and a coworker are both running into this on separate computers.
0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

Xamarin.Forms is only supported for UWP, iOS and Android. .NET Core and .NET Framework is not supported 

View solution in original post

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

Xamarin.Forms is only supported for UWP, iOS and Android. .NET Core and .NET Framework is not supported 

0 Kudos
FelicityRhone
New Contributor III

Ah, thank you. We were hoping to port most of our tests over from our existing UWP test project (using XUnit) to a .Net Core project, because the former test runner is so slow. Do you have any other recommendations for what to use for unit tests if .Net Core isn't going to work?

0 Kudos