I noticed when I use NuGet to add MVVMHelpers, the app refuses to start. I get the following error:
“Unable to activate Windows Store app xxx, The activation request failed with error ‘The app didn’t start’.”
Wow. Totally unhelpful – even chasing down the event logs didn’t really help much other than to show me a lot of weird errors get logged from Metro apps about tiles!
After experimenting a bit, it turns out the fix is quite simple. MVVMHelpers relies on MEF for composition and dependency injection. The MEF package (Microsoft.Composition) which also gets included, adds an app.config with a bunch of assembly binding instructions for version redirection – this is what is causing the failure. I presume these are for the desktop version of .NET and just don’t work with Windows 8 apps. Here’s what got added to mine:
Remove the app.config to solve the problem. I hope that saves somebody some time and grief! Happy coding!