System.Windows.Interactivity not found -- Blend 3 WPF project RRS feed

  • Question

  • I'm trying to compile a WPF application with Triggers and Behaviors using Blend 3. I have included System.Windows.Interactivity; however, I get the error "The type or namespace name 'Interactivity' does not exist in the namespace "System.Windows"." I can't find this file anywhere on my hard drive. I repaired my Blend 3 SDK installation to no avail.

    How do I fix this problem and compile my project? Where is this assembly stored?
    Tuesday, January 19, 2010 7:11 PM

All replies

  • Howdy,

    As you know the SDK is the usual requirement for this.

    When you open your solution in Visual Studio, the only other thing I can suggest is to work through all your projects ensuring in their properties that the target platform assembly is correctly set to .Net 3.5..

    Sounds nasty though... if that doesnt solve it after cleaning the solution, I would advise you to log that error at http://connect.microsoft.com and hopefully you can get a quick response and some further guidence.


    Expression MVP

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Wednesday, January 20, 2010 8:51 PM
  • If you would post/email your csproj file for the project that is giving the error, we can take a look and be sure the reference to System.Windows.Interactivity is correct.

    Other thoughts:
    The file should exist here:
    C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF  (that is for 64 bit, check regular program files for 32 bit)

    If you have a reference to System.Windows.Interactivity.dll already, which fails to resolve, you could remove it, and try readding it with that explicit path.  If that works, there is a broken registry key someplace in how msbuild finds the assembly.  If that is the case, I can help you sort that out as well.
    Thursday, January 21, 2010 5:37 PM