如何制作WPF Kinect应用程序的可执行版本? [英] how to make an executable version of a WPF Kinect Application?

查看:93
本文介绍了如何制作WPF Kinect应用程序的可执行版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Microsoft Visual Studio 2010中制作了Kinect应用程序.我需要制作可在任何基于Windows的系统上运行的应用程序的exe.如果我需要这样做,那么对系统应该满足的要求有什么?如果是,那我该怎么办?

I have made a Kinect Application in Microsoft Visual Studio 2010. I need to make an exe of the application which can run on any windows based system. If I need to do that than is there any requirements that the system should fulfil? and If yes, then how do I do that?

我试图通过复制到另一个文件夹中来在application/bin/debug/application.exe中使用exe,但是它显示了一个错误,但是如果我从bin/debug/application.exe中运行该exe,它就可以工作.我是在这里想念东西还是唯一的方法?

I tried to use the exe in application/bin/debug/application.exe by copying it in another folder but it shows an error but if I run the exe from the bin/debug/application.exe it works. Am I missing something here or is it the only way to do that?

推荐答案

任何基于Windows的系统"都无法正常工作.假设您使用的是Kinect SDK,它将仅在Windows 7(可能是Windows Server 2008)上运行.运行该应用程序的计算机将需要仅与新的Kinect for Windows传感器一起使用的Kinect运行时,或需要与Kinect for Xbox一起使用的Kinect SDK.微软希望为Windows传感器销售更多的Kinect,因此它们不允许运行时与旧的Xbox Kinects一起使用.在某种意义上说得通,但是当我第一次发现它的时候,那个人就惹我了.有一个简短文章显示了如何在应用程序加载时测试运行时是否存在,因此您可以显示适当的错误消息,而不仅仅是崩溃.

"Any Windows based system" isn't going to work. Assuming you're using the Kinect SDK, it will only run on Windows 7 (and supposedly Windows Server 2008). The computer running the application will need either the Kinect Runtime, which only works with the new Kinect for Windows sensor, or the Kinect SDK, which also works with the Kinect for Xbox. Microsoft wants to sell more Kinect for Windows sensors, so they don't allow the runtime to work with the old Xbox Kinects. Makes sense in a way, but man that bugged me when I first found out about it. There's a short post showing how to test for the existence of the Runtime on application load, so you can show an appropriate error message instead of just crashing out.

您需要将程序依赖的任何文件(例如DLL文件)与可执行文件一起复制.有说明

You need to copy any files that the program relies on, such as DLL files, along with the executable. There's instructions here for how to embed the DLL files into the executable; I've not tried it but it might be worth a shot.

在安装运行时或SDK时,应安装正确的.NET版本.您不必为此担心.

The correct .NET version should be installed when either the Runtime or the SDK is installed; you shouldn't have to worry about this.

这篇关于如何制作WPF Kinect应用程序的可执行版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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