Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# winmd can';找不到Newtonsoft.Json.dll文件_C#_Dll_Unity3d_Windows Runtime_Pushwoosh - Fatal编程技术网

C# winmd can';找不到Newtonsoft.Json.dll文件

C# winmd can';找不到Newtonsoft.Json.dll文件,c#,dll,unity3d,windows-runtime,pushwoosh,C#,Dll,Unity3d,Windows Runtime,Pushwoosh,我正在使用Unity构建一个所谓的“Universal Windows 8.1”应用程序,并试图让Pushwoosh SDK正常工作。PushSDK.winmd和Newtonsoft.Json.dll都成功复制到Visual Studio项目中。但当它最终到达代码时: NotificationService service = PushSDK.NotificationService.GetCurrent("my-id"); 我得到以下错误: 这似乎是一个相当“普遍”的问题,因此我在这里发布它

我正在使用Unity构建一个所谓的“Universal Windows 8.1”应用程序,并试图让Pushwoosh SDK正常工作。PushSDK.winmd和Newtonsoft.Json.dll都成功复制到Visual Studio项目中。但当它最终到达代码时:

NotificationService service = PushSDK.NotificationService.GetCurrent("my-id");
我得到以下错误:

这似乎是一个相当“普遍”的问题,因此我在这里发布它。据我所知,由于某种原因,lib文件“PushSDK.winmd”找不到Newtonsoft.json.dll。但我不确定我还能做什么。它位于本项目的“参考”项下(见下文):

编辑 到目前为止,我所尝试的: 1.使用相同的DLL重建Pushwoosh SDK,并尝试使用另一个DLL。 2.尝试完全不使用Newtonsoft.Json.dll


这两种方法都会产生如上所示的错误。这意味着它甚至不读取任何DLL,只是找不到而已。

耶,这只花了大约6个小时就解决了

似乎所需的步骤是将文件Newtonsoft.Json.dll添加到Unity中的“未处理插件”列表中。希望其他人能使用此信息


感谢在评论栏中提供的所有输入

是否引用了正确的程序集?对于不同的平台和.NET运行时,Newtonsoft.Json.dll有不同的版本。是否确实引用和复制的Newtonsoft.Json.dll与错误消息中请求的版本相匹配?似乎PushSDK需要.Net 4.5版本,而您只有Newtonsoft.Json.dll的4.0版本。您安装了哪个版本的Newtonsoft.Json?(右键单击并选择属性-它应该会告诉您)图像中选择的版本有:版本:4.5.0.0和运行时版本4.0.3(无论是什么)。Newtonsoft.json.dll直接取自Pushwoosh github repo,这表明它是相同的。:/此外,我看不到正在获取的PushSDK文件的源代码:System.IO.FileNotFoundException:Assembly“PushSDK,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null”文件未找到。关于这个有什么想法吗?那你是在什么背景下使用图书馆的?Unity,构建本地应用程序还是其他用途?