Your project.json doesn't list 'win10' as a targeted runtime : <p>I hate reposting, but I thought posting to the <a href="https://social.msdn.microsoft.com/Forums/en-US/efb7e560-e2e4-4385-8287-a6ada4e3622b/uwphtml-problem-with-uap-app-running-with-references-to-a-pcl?forum=wpdevelop" rel="noreferrer">MSDN forum</a> was the right thing to do since it looks there are not many people working on UWP apps with HTML/JavaScript, but, since I had no answers at all, I'm turning to the great SO community for help.</p>

<p><em>Problem:</em><br>
I have a very simple UAP app in HTML/JavaScript that has a reference to a Windows Runtime Component which has a reference to a Class Library.</p>

<p>I need to project to run in either PCs and/or mobiles so I need to compile it with Any CPU. The problem is that whenever I want to compile my app I get the following error:</p>

<p><code>Your project.json doesn't list 'win10' as a targeted runtime. You should add '"win10": { }' inside your "runtimes" section in your project.json, and then re-run NuGet restore.</code></p>

<p>And If I do add the plain win10 entry under runtimes, I get many other errors. This is what my project.json looks like:</p>

<pre><code>{
"dependencies": {
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
    "uap10.0": { }
},
"runtimes": {
    "win10-arm": { },
    "win10-arm-aot": { },
    "win10-x86": { },
    "win10-x86-aot": { },
    "win10-x64": { },
    "win10-x64-aot": { }
}
}
</code></pre>

<p>Also, there's a minimal repro <a href="http://1drv.ms/1SOmXSW" rel="noreferrer">here</a> if anybody is interested in checking it out.</p>
