I'm currently working on a Windows 8.1 Store application.
In my development environment, the solution builds successfully. But when the solution is built on a TFS Build Server, it fails with messages :
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?)
Note that my project references the Windows Extensions : "Behaviors SDK (XAML)" (Version 12.0). I followed tutorial TFS Continuous Integration for Windows 8.1 Store Apps with SDK dependencies.
Without MultiSelectBehaviorBase.cs, it build correctly on TFS Server (even if the project has reference to BehaviorSDK).
MultiSelectBehaviorBase.cs (copied from Managing Multiple selection in View Model) :
public class MultiSelectBehaviorBase<T>: DependencyObject, IBehavior
{
...
}
I know this was posted some months ago, I had a similar problem "The type or namespace 'IBehaviour' could not be found (are you missing a using directive or an assembly)". Most at times when this kind of errors happens, they are due to an omission of a reference. To solve this problem, I got this information from http://julmar.com/blog/programming/behaviors-in-windows-8-1-store-apps/
Under your project in the solution explorer, double click reference and enable the behavioural SDK as demonstrated on the image belowBehavioural SDK demo Note there are instances when such reference can not be found there, you can attempt to download from NuGet Package Manager. I hope this helps.