The library hostpolicy.dll was not found
<p>I have a simple .NET Core project (console app) that I'm trying to compile and run. <code>dotnet build</code> succeeds, but I get the following error when I do <code>dotnet run</code>:</p>
<pre class="lang-none prettyprint-override"><code>dotnet run
Project RazorPrecompiler (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in [path].
</code></pre>
<p>My project.json looks like this:</p>
<pre><code>{
  &quot;buildOptions&quot;: {
    &quot;warningsAsErrors&quot;: true
  },
  &quot;dependencies&quot;: {
    &quot;Microsoft.AspNetCore.Razor&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.NETCore.App&quot;: {
      &quot;type&quot;: &quot;platform&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;
    }
  },
  &quot;description&quot;: &quot;Precompiles Razor views.&quot;,
  &quot;frameworks&quot;: {
    &quot;netcoreapp1.0&quot;: {
      &quot;imports&quot;: [ ]
    }
  },
  &quot;version&quot;: &quot;1.2.0&quot;
}
</code></pre>
<p>What is <code>hostpolicy.dll</code>, and why is it missing?</p>