Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF .Net 4.5 App - MahApps looking for System.Windows.Interactivity 4.0 #384

Closed
GeorgeB2009 opened this issue Mar 14, 2013 · 12 comments
Closed
Labels

Comments

@GeorgeB2009
Copy link

I have a .WPF Net 4.5 application that as soon as I add MahApps stops working as it's looking for System.Windows.Interactivity 4.0

@shiftkey
Copy link

I've not seen any issues with using the .NET 4 version of MahApps.Metro in a .NET 4.5.

Here's a simple sample to test out: link

Can you elaborate on what issues you're seeing?

EDIT: to clarify, System.Windows.Interactivity is a binary from Microsoft - I don't believe they ship a .NET4.5-specific version.

@GeorgeB2009
Copy link
Author

As soon as I add <Controls:MetroWindow do I see the exception

The inner exception

{"Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}

and here is the reference I have in my project

c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.5\Libraries\System.Windows.Interactivity.dll

@shiftkey
Copy link

What do you have installed on your machine in terms of Expression Blend?

I can investigate what's changed between these versions and confirm we can pull this in for a .NET 4.5 project without issues.


From: GeorgeB2009
Sent: 14/03/2013 11:57
To: MahApps/MahApps.Metro
Cc: Brendan Forster
Subject: Re: [MahApps.Metro] WPF .Net 4.5 App - MahApps looking for System.Windows.Interactivity 4.0 (#384)

As soon as I add <Controls:MetroWindow do I see the exception

The inner exception

{"Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}

and here is the reference I have in my project

c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.5\Libraries\System.Windows.Interactivity.dll


Reply to this email directly or view it on GitHubhttps://github.com//issues/384#issuecomment-14910793.

@GeorgeB2009
Copy link
Author

Blend + SketchFlow Preview for VS 2012 - came with VS 2012

@GeorgeB2009
Copy link
Author

So I took your sample and it runs no problem.

Then I thought I would add in the NuGet packages I'm using.

Cocktail 2012 - which includes DevForce 2012 and Caliburn Micro
MefContrib
EntityFramework 5

It still works fine.

I'll did around some more but what is interesting is it only crashes when I add in MahApps. I take it out and the app works. Doesn't look good but it works.

@shiftkey
Copy link

Ok, so some context:

We're using System.Windows.Interactivity for it's Behaviour/EventTriggerIinteraction/TriggerAction etc components. But it's expecting the .NET 4 version - which we include in the NuGet package.

Because you already have it referenced (Caliburn.Micro I gather) installing MahApps.Metro doesn't install the .NET 4 version.

Shouldn't be too hard to fix, but what I need to do is:

  • confirm the .NET 4.5 version of System.Windows.Interactivity works fine with MahApps.Metro
  • update our pre-release package to include the .NET 4.5 version of System.Windows.Interactivity
  • might have to ship a .NET 4.5 version of the MahApps.Metro assembly

@shiftkey shiftkey mentioned this issue Mar 14, 2013
3 tasks
@GeorgeB2009
Copy link
Author

Awesome.

And keep up the great work. I know of a large listed company that is using MahApps for their internal systems and the users are loving it.

@shiftkey
Copy link

Drop me a line (email is in my GitHub profile) - would love to hear more about it.

Wish I had more time to spend on this, so any feedback around what works and what they'd like to see would be excellent.

@GeorgeB2009
Copy link
Author

Will do. They've just gone live so the guys are heads down. I know they spent quite a bit of time on styling as their corporate colours are green and they needed to make the Infragistics components work with the same colours.

They use it as a front-end to JD Edwards (their ERP system).

@shiftkey
Copy link

I've just pushed 0.10.1.33-ALPHA which includes the .NET45 version (and is signed). Can you confirm the fix works with your scenario?

Install-Package MahApps.Metro -Pre

@GeorgeB2009
Copy link
Author

Perfect. Works a treat.

Thanks for the help.

@shiftkey
Copy link

You're welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants