Microsoft Emotion API 实现错误

Microsoft Emotion API implementation Error

我正在尝试使用 github 上可用的代码在 C# 中实现 Microsoft 情感 api。我遵循了 Microsoft Cognitive Service 中给出的所有步骤。我有 3 个错误

Error : The tag 'VideoResultControl' does not exist in XML namespace 'clr-namespace:SampleUserControlLibrary;assembly=SampleUserControlLibrary'

Error: The tag 'SampleScenarios' does not exist in XML namespace 'clr-namespace:SampleUserControlLibrary;assembly=SampleUserControlLibrary'.

Error NuGet Package restore failed for project EmotionAPI-WPF-Samples: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

我发现了一个类似的问题here(除了第三个问题的变化)但没有答案。

我尝试删除 .suo 文件来修复最后一个错误,但没有成功

经过数小时的研究,我找到了解决方案。 对于前两个错误,我发现

Cognitive-Common-Windows is a git submodule

所以,待办事项是 -

git submodule init

git submodule update

对于第三题,I temporarily moved the project to an upper directory tree so that the path name is not too long 可以找到更多信息 here and here