0

我尝试在我的 WP8 Unity3D 插件中使用 facebooksdk.net。Facebook.dll 和 Facebook.Client.dll 以及它们在正确文件夹中的伪造品,但发生错误。有什么办法可以解决吗?

Error building Player: Exception: Failed to run assembly preprocessor with command line       "Temp/StagingArea/Data/Managed\Facebook.Client.dll" -injectCtor -assemblyPath "Temp/StagingArea" -pdb.[Temp/StagingArea/Data/Managed\Facebook.Client.dll]
No symbols for Temp/StagingArea/Data/Managed\Facebook.Client.dll
Injecting ctor
Error while in assembly preprocessor Temp/StagingArea/Data/Managed\Facebook.Client.dll
Object reference not set to an instance of an object.
at AssemblyPreprocessor.Utils.IsBaseType(TypeDefinition definition, String name)
at AssemblyPreprocessor.Utils.IsFromNamespace(TypeDefinition definition, String namezpace)
at AssemblyPreprocessor.ConstructorInjector.ShouldInject(TypeDefinition typeDefinition)
at AssemblyPreprocessor.ConstructorInjector.InjectConstructorsForTypesIn(ModuleDefinition moduleDefinition)
at AssemblyPreprocessor.Program.Main(String[] args)
4

1 回答 1

1

Facebook.dll 使用 .NET Framework 4.5 库,Windows Phone 使用 Windows Phone 的 .NET API ( http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207211(v=vs.105)。 .aspx)。您无法将此 dll 导出到 WP8

于 2014-02-17T09:35:58.363 回答