I am working on a WPF app that I want to create for Windows 8. I followed steps mentioned in Hansleman's blog to maks some manual modifications using which I could call WinRT functions in WPF app. Everything worked well, until I tried to publish the app. When I clicked on publishing the app I got error "The 'ResolveManifestFiles' task failed unexpectedly. System.ArgumentException: Value does not fall within the expected range."
Afterwards, it will produce the same error when attempting a simple solution build.
Even if you create a simple WPF project and add the references mentioned in blog to access WinRT functions and publish, this issue can be reproduced.
I think it would be common scenario to call WinRT functions from WPF and someone should have done it. Is anyone aware what should be done to fix this issue?