Windows应用程序开发中的System.TypeLoadException
本文关键字:System TypeLoadException 应用程序开发 Windows | 更新日期: 2023-09-27 18:34:38
我正在使用Visual Studio Express 2013 for Windows在Windows应用程序中实现liblinear。使用 nuget 包管理器安装 liblinear 后(链接 https://www.nuget.org/packages/Liblinear/(,我正在尝试使用它:
using de.bwaldvogel.liblinear;
在我输入的代码中:
Parameter para = new Parameter(SolverType.MCSVM_CS, 1.0 , 0.01);
但它在运行时给出错误,指出:
An exception of type 'System.TypeLoadException'occured in FileExplorer.DLL but was not
handled in the user code.
Additional Information: Could not load type 'System.Runtime.Serialization.Iserializable
' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
If there is a handler for this exception, the program may be safely continued.
此外,安装 nuget 包时没有错误,但有警告指出
Reference to type 'System.Runtime.Serialization.ISerializable' claims it is defined in
'c:'Program Files (x86)'Reference Assemblies'Microsoft'Framework'WindowsPhone'v8.0'mscorlib.dll',
but it could not be found (in IKVM.OpenJDK.Core.dll)
Reference to type 'System.Runtime.Serialization.SerializationInfo' claims it is defined
in 'c:'Program Files (x86)'ReferenceAssemblies'Microsoft'Framework'WindowsPhone'v8.0
'mscorlib.dll', but it could not be found (in IKVM.OpenJDK.Core.dll)
谁能帮我解决这个问题?我正在为Windows Phone 8.0开发应用程序。
不幸的是,ISerializable 界面不适用于 Windows Phone 8.x。 :(在此处查看平台部分。此线程还具有其他信息。
liblinear NuGet 包应该在 Windows Phone 上受支持吗?如果是这样,我会直接与包的作者联系。