locked
Difference WinRT Component for store and for phone

    Question

  • Any windows phone 8 project doesn't allow the windows store 8 winRT component project to add as a reference. What I understand, we should create separate winRT Components for the phone and tablets in this situation. Is there any kind of winRT dll project for both platform. If there isn't, is there any kind of documentation what will the differences between the windows phone 8 winRT projects and windows store 8 winRT projects?

    Thanks.




    Oğuz Köroğlu
    http://oguzkoroglu.net

    Wednesday, October 31, 2012 9:12 AM

Answers

All replies

  • My WinRT components are built using C++/CX.  I can add them as a reference to a C# Windows Phone 8 project.  And, I can make calls to the component and build the app.  However, it fails at runtime on the first call with "File Not Found" exception.  I'm making a guess here that this is b/c the appropriate version of ms c runtime dlls are not present.  How can I resolve this?
    Wednesday, October 31, 2012 2:38 PM
  • How and where did you find any kind of abstract winRT C++/CX project type. It looks like there is a Windows Store App WinRT Project and Windows Phone App WinRT (also called WinPRT) Project. If I try to add a windows store winRT project in a phone application fallowing reference error occurs.




    Oğuz Köroğlu
    http://oguzkoroglu.net

    Wednesday, October 31, 2012 3:40 PM
  • You need to create separate projects. There is no equivalent to the Portable Class Library for Windows Runtime Components.

    You can share code files by linking the same file into each project, but they will need to be compiled separately.

    Take a look at the //build session How to Leverage your Code across WP8 and Windows 8 for more information.

    --Rob

    Wednesday, October 31, 2012 4:51 PM
    Owner
  • Thanks, I'll check that out.
    Wednesday, October 31, 2012 7:34 PM