打开Kinect SDK 1.7 InteractionGallery示例项目时出现“不支持字符串”错误 [英] Getting 'String not supported' error when opening Kinect SDK 1.7 InteractionGallery Sample Project

查看:127
本文介绍了打开Kinect SDK 1.7 InteractionGallery示例项目时出现“不支持字符串”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在堆栈溢出时发布了相同的问题,没有人回答。



按顺序安装以下内容:



  1. Visual Studio Express 2012

  2. Kinect SDK v1.7

  3. Kinect Developer Toolkit 1.7.0



我能够构建和运行InteractionGallery-WPF。适用于Kinect。所有示例项目都可以。我接着尝试过看看我是否可以编辑一些东西。



打开InteractionGallery-WPF.sln在




  • C:\Program Files\Microsoft SDKs\Kinect\Developer工具包v1.7.0\Samples\C#\InteractionGallery-WPF\


  • 当我查看视觉工作室这个文件:InteractionGallery WPF\Content\ArticleScreen\Article1.xaml的VS设计师说错误的标记。我在xaml编辑器中得到了波浪形的警告。以及错误列表中的错误。



    获取错误:




    • 'Windows Presentation Foundation(WPF)项目不支持字符串'

    • 'Windows Presentation Foundation(WPF)项目不支持Uri'


    当我谷歌这个错误时,它几乎不存在,除了我的朋友在其他地方询问同样的问题。似乎好像我遗漏了一些简单的事情。这发生在4个不同的安装(不同的机器)上。

    解决方案

    为获得最佳效果,您可能需要使用Developer Toolkit  Brower并单击Interaction Gallery-WPF项目的"Install"按钮。这将把所有引用项目及其相关文件的副本复制到
    定义的文件夹中。确保您拥有所有必要的项目依赖项,包括: 


    - InteractionGallery-WPF

    - Microsoft.Kinect.Toolkit

    - Microsoft.Kinect.Toolkit.Controls


    打开项目后,从Visual Studio的"Build"菜单中选择"Rebuild Solution",然后再开始。这将确保Ë所有从属的参考项目的.dll的内置和解决。


    http://msdn.microsoft.com/en-us/library/hh855373.aspx#Visual_Studio_Help

    http://msdn.microsoft.com/en-us/library/jj663801.aspx


    I posted the same issue on stack overflow and no one has answered.

    Installed the following in order:

    1. Visual Studio Express 2012
    2. Kinect SDK v1.7
    3. Kinect Developer Toolkit 1.7.0

    I am able to build and run InteractionGallery-WPF. Works great with the Kinect. All sample projects do. I then tried to see if I could edit a few things.

    Opened InteractionGallery-WPF.sln in

    • C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.7.0\Samples\C#\InteractionGallery-WPF\

    When I view this file in Visual Studios: InteractionGallery WPF\Content\ArticleScreen\Article1.xaml the VS Designer says invalid markup. And I get squiggly warnings in the xaml editor. As well as errors in the error list.

    Getting errors:

    • 'String is not supported in a Windows Presentation Foundation (WPF) project'
    • 'Uri is not supported in a Windows Presentation Foundation (WPF) project'

    When I Google this error it's pretty much non-existent besides my friend asking about the same issue elsewhere. It seems as if I'm missing something simple. This has happened on 4 separate installations (different machines).

    解决方案

    For best results, you might want to use the Developer Toolkit Brower and click the "Install" button for the Interaction Gallery-WPF project. This will make a copy of all the referenced projects and their associated files into a folder that you define. This ensures you have all the necessary project dependencies that include: 

    - InteractionGallery-WPF
    - Microsoft.Kinect.Toolkit
    - Microsoft.Kinect.Toolkit.Controls

    Once you open the project, from the "Build" menu of Visual Studio, select "Rebuild Solution" before you begin. This will ensure all the dependent reference projects .dll's are built and resolved.

    http://msdn.microsoft.com/en-us/library/hh855373.aspx#Visual_Studio_Help
    http://msdn.microsoft.com/en-us/library/jj663801.aspx


    这篇关于打开Kinect SDK 1.7 InteractionGallery示例项目时出现“不支持字符串”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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