locked
The project 'projectname.Shared' cannot be added to the solution because it is already a member of the solution RRS feed

  • Question

  • Topic: Adding a shared (universal) library project to a DirectX+XAML Universal App in Visual Studio 2013

    I have created a VS2013 Direct-X/XAML Universal App. Since it's a universal app, there are 3 projects:

    • a project for Win 8.1
    • a project for Win Phone 8.1
    • a "shared node" for code which is shared between the Win 8.1 and Win Phone 8.1 project.

    I have also created a VS2013 Static Library (for Universal Apps). Since it's a library for universal apps, it contains:

    • a project for Win 8.1
    • a project for Win Phone 8.1
    • a "shared node" for code which is shared between the Win 8.1 and Win Phone 8.1 project.

    I would like to add the static library project(s) to the Direct-X/XAML app AND be able to see the shared library source code.

    Since the static library contains 2 projects, I have to add both projects to the application. I also update the dependency list so that the Win 8.1 project in the app is dependent on the Win 8.1 lib project and the Win Phone 8.1 app project is dependent on the Win Phone 8.1 lib project.

    After I'm done with the above, I don't see the shared node from the library. I would like to be able to see the source code which is shared between the library projects.

    How do I solve this problem?

    Screenshots:

    http://s24.postimg.org/bzly4h391/1_Lbpa.png

    http://s4.postimg.org/539157ect/g_Wk_GR.png

    Thursday, August 21, 2014 2:13 AM

All replies

  • Hi SWDev2014,

    I am moving your thread into the Developing for Windows Phone Forum for dedicated support. Thanks for your understanding.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Friday, August 22, 2014 9:11 AM
  • Can somebody please take a look at this?

    Thank you :-)

    Tuesday, August 26, 2014 1:45 AM
  • Add just a single target project and then upgrade it to universal, then copy in your existing code. If that doesn't work let me know and I'll take a closer look when I'm in the office.


    Tuesday, August 26, 2014 2:09 AM
    Moderator