locked
Add reference of a Windows Runtime Component to an existing project

    Question

  • I have a Windows Phone 8.1 solution with the following projects:

    • MainApplication (for the application itself)
    • Portable Class Library (PCL) (for some useful methods and whatnot)
    • Windows Runtime Component (WinRT) (for Background Tasks)

    I'm trying to compile the PCL and WinRT to a .nuget Package, and I know I can do that with the PCL, however, I'm missing something in the WinRT.
    To test it manually, I'm removing projects from the solution and adding their build as reference, i.e., thePCL produces a .dll file that I'll add to my MainApplication as a reference. The problem here is that theWinRT does not produce a .dll, but a .winmd file instead. The thing here is that I don't know how to add that file to my PCL as a reference.

    To sum it all up, how can I add, as reference, the result of a WinRT project build? Is it the .winmd file or some other?


    Tuesday, November 4, 2014 7:44 PM

All replies

  • Does you use /WINMD:NO to generate library.

    http://msdn.microsoft.com/en-us/library/jj157268.aspx 

    Wednesday, November 5, 2014 1:46 PM