Windows store apps 类型或命名空间名称';IBehavior';在TFS生成服务器上找不到

Windows store apps 类型或命名空间名称';IBehavior';在TFS生成服务器上找不到,windows-store-apps,tfsbuild,build-server,Windows Store Apps,Tfsbuild,Build Server,我目前正在开发一个Windows8.1商店应用程序 在我的开发环境中,解决方案成功构建。但当解决方案构建在TFS构建服务器上时,会出现以下消息: behaviors\MultiSelectBehaviorBase.cs (1): The type or namespace name 'Xaml' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) behaviors\Mult

我目前正在开发一个Windows8.1商店应用程序

在我的开发环境中,解决方案成功构建。但当解决方案构建在TFS构建服务器上时,会出现以下消息:

behaviors\MultiSelectBehaviorBase.cs (1): The type or namespace name 'Xaml' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) 

behaviors\MultiSelectBehaviorBase.cs (28): The type or namespace name 'IBehavior' could not be found (are you missing a using directive or an assembly reference?) 
请注意,我的项目引用了Windows扩展:“行为SDK(XAML)”(12.0版)。我遵循了教程

如果没有MultiSelectBehaviorBase.cs,它将在TFS服务器上正确构建(即使项目引用了BehaviorSDK)

MultiSelectBehaviorBase.cs(复制自):

公共类MultiSelectBehaviorBase:DependencyObject,IBehavior { ... }
我知道这是几个月前发布的,我遇到了一个类似的问题“找不到类型或命名空间'IBehaviour'(是否缺少using指令或程序集)”。大多数情况下,当这种错误发生时,它们是由于遗漏了一个引用。为了解决这个问题,我从

在解决方案资源管理器中的项目下,双击引用并启用行为SDK,如下图所示 注意,当在那里找不到此类引用时,您可以尝试从NuGet Package Manager下载。我希望这有帮助

public class MultiSelectBehaviorBase<T>: DependencyObject, IBehavior
{
...
}