Jim K
Jim K

Reputation: 155

WPF compile started failing for Interactions and Interactivity

Today I stopped being able to compile my WPF project. I started getting a host of errors such as "The attachable property 'Behaviors' was not found in type 'Interaction' in the (xxx xaml file)."

I haven't changed any references (I have both the "Microsoft.Expression.Interactions" and "System.Windows.Interactivity" dll's referenced still in my project).

UPDATED: The errors I am getting are similar to this one: "Error 15 The type 'i:EventTrigger' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. (Xaml Filename here)"

i: is defined as: "xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity""

When recompiling it is now getting these errors. As mentioned above I still have those same DLL references in the project. I don't know what could have changed.

Thanks.

MORE COMPLETE INFORMATION:

This code had been running fine for hundreds of ongoing compiles over a year and a half.

However I can't seem to figure out the correct syntax to change the ei="http://schemas.microsoft.com/expression/2010/interactions" reference to the Microsoft.Expression.Interactions Assembly. I don't know why it makes a difference and I may be going down the wrong path, but it's my next step. Any help on that one?

Upvotes: 2

Views: 4604

Answers (1)

Jim K
Jim K

Reputation: 155

After more digging I discovered that the uninstall I mentioned for VS 2013 RC must have also uninstalled the Expression Blend SDK for .Net 4.

Oddly enough the Dll's that I had referenced were leftover from the 3.5 SDK but the namespace was for the .Net 4 SDK and had always been working. (Until that SDK was uninstalled). A clue for me was when I went to enter another namespace and the "//schemas.microsoft.com/expression/2010/interactivity" selection was no longer in the intellisense list.

I reinstalled the Blend SDK for .Net 4 and all is well again. Thanks for the attempts to help. A reminder to me to always focus on the question "what has changed" even though it may not be where you suspect...

Upvotes: 2

Related Questions