针对unity3D WP8和METRO的Facebook插件

时间:2013-10-16 07:11:46

标签: facebook windows-phone-8 unity3d

我尝试在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)

1 个答案:

答案 0 :(得分:1)

Facebook.dll使用.NET Framework 4.5库,Windows Phone使用.NET API for Windows phone(http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207211(v=vs.105).aspx)。你不能将这个dll导出到WP8