需要一个强名称的程序集。使用Microsoft.Kinect.Toolkit和Microsoft.Kinect.Toolkit.Control的代码时 [英] A strongly-named assembly is required. When use code of Microsoft.Kinect.Toolkit and Microsoft.Kinect.Toolkit.Control

查看:75
本文介绍了需要一个强名称的程序集。使用Microsoft.Kinect.Toolkit和Microsoft.Kinect.Toolkit.Control的代码时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Microsoft.Kinect.Toolkit和Microsoft.Kinect.Toolkit.Control的代码时遇到了问题。


我试着修改一下代码这样KinectTileButton就可以重置为Hover事件。我使用从Developer Toolkit Browser v1.8.0(Kinect for Windows)下载的ControlBasic示例测试了我的代码,它可以工作。但是,当我将Microsoft.Kinect.Toolkit
和Microsoft.Kinect.Toolkit.Control复制到我自己的解决方案时,出现了一个问题,如下所示:


错误     1    未知的构建错误,'需要具有强名称的程序集。 (HRESULT异常:0x80131044)第27行位置147.'     C:\Users\admin\Desktop\View\MainWindow.xaml     27  
  147   查看


我尝试从Developer Toolkit中编译这两个项目的Dll文件,他们工作了文件。


有没有人遇到过这个问题?谢谢




$

解决方案

确保您的项目设置与样本匹配。您不能将x86二进制文件与基于x64的应用程序一起使用,反之亦然。根据您创建项目的方式,编译项目时使用的证书可能不匹配。这是你的项目设置的
,你可能想在WPF论坛上询问你是否还没有进一步。


http://msdn.microsoft.com/en-us/library/xc31ft41(v=vs.110)。 ASPX


Hi, I met a problem when using the code of Microsoft.Kinect.Toolkit and Microsoft.Kinect.Toolkit.Control.

I tried to modify the code a little so that KinectTileButton can respose to Hover event. I tested my code with the ControlBasic example downloaded from Developer Toolkit Browser v1.8.0 (Kinect for Windows) and it works. However, when I copied Microsoft.Kinect.Toolkit and Microsoft.Kinect.Toolkit.Control to my own solution, a problem happened as follow

Error    1    Unknown build error, 'A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) Line 27 Position 147.'     C:\Users\admin\Desktop\View\MainWindow.xaml    27    147    View

I tried the compiled Dll files of these two projects from Developer Toolkit, they worked file.

Is there any one met this problem? Thank you



解决方案

Make sure your project settings match the samples. You cannot use x86 binaries with an x64 based application and vice versa. Depending on how you created your project, you may have a mismatch in the certificate used when compiling the project. This is something with your project settings and you might want to ask over in the WPF forums if you don't get any further.

http://msdn.microsoft.com/en-us/library/xc31ft41(v=vs.110).aspx


这篇关于需要一个强名称的程序集。使用Microsoft.Kinect.Toolkit和Microsoft.Kinect.Toolkit.Control的代码时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆