【发布时间】:2015-06-16 09:11:57
【问题描述】:
我目前正在开发一个 Windows 8.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)。我跟着教程TFS Continuous Integration for Windows 8.1 Store Apps with SDK dependencies。
如果没有 MultiSelectBehaviorBase.cs,它可以在 TFS 服务器上正确构建(即使项目引用了 BehaviorSDK)。
MultiSelectBehaviorBase.cs(复制自Managing Multiple selection in View Model):
public class MultiSelectBehaviorBase<T>: DependencyObject, IBehavior
{
...
}
【问题讨论】:
标签: windows-store-apps tfsbuild build-server