引用后,调用包中的函数报以下错误
System.BadImageFormatException
HResult=0x80131058
Message=Could not load file or assembly 'Esri.ArcGISRuntime, Version=100.12.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)
Source=<无法计算异常源>
StackTrace:
<无法计算异常堆栈跟踪>
内部异常 1:
BadImageFormatException: Cannot load a reference assembly for execution.
清理掉bin文件夹内容仍然出错,最后发现该包不支持net5 切换到3.1 就没问题了