Closed GeorgeB2009 closed 11 years ago
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.
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
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/MahApps/MahApps.Metro/issues/384#issuecomment-14910793.
Blend + SketchFlow Preview for VS 2012 - came with VS 2012
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.
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:
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.
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.
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).
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
Perfect. Works a treat.
Thanks for the help.
You're welcome
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