title: Clearscript V8 in ASP.NET 5 - v8-x64.dll could not be opened -- PE image doesn't contain managed metadata
body: <p>I have issues with ClearScript. When I use them from regular project (class library or wpf), when dependency is added through nuget, also a post build script is added that copies <code>ClearScriptV8-32.dll</code>, <code>ClearScriptV8-64.dll</code>, <code>v8-ia32.dll</code> and <code>v8-x64.dll</code> to <code>bin</code> directory and everything works well. But when I try to use this library with new ASP.NET, things go wrong. </p>
  
  <p>Nuget ClearScript package for dnx is downloaded to</p>
  
  <pre><code>C:\Users\lukasz\.dnx\packages\ClearScript.V8\5.4.3\lib\net40
  </code></pre>
  
  <p>I mean, <code>ClearScript.dll</code> is there but those 4 other files are not (they are <code>..\..\tools\native\{x86,amd64}\*</code>, just like in case of desktop app), and when I run app it says </p>
  
  <pre><code>System.IO.FileNotFoundException: Cannot find file 'C:\Users\lukasz\.dnx\packages\ClearScript.V8\5.4.3\lib\net40\ClearScriptV8-32.dll'
  </code></pre>
  
  <p>So following my experiences from regular projects, I just copied those 4 files from</p>
  
  <pre><code>.dnx\packages\ClearScript.V8\5.4.3\tools\native\{x86,amd64}\*
  </code></pre>
  
  <p>to</p>
  
  <pre><code>.dnx\packages\ClearScript.V8\5.4.3\lib\net40
  </code></pre>
  
  <p>And then I get this error</p>
  
  <pre><code>Error: error CS0009: Metadata file 'C:\Users\lukasz\.dnx\packages\ClearScript.V8\5.4.3\lib\net40\v8-x64.dll' could not be opened -- PE image doesn't contain managed metadata.
  error CS0009: Metadata file 'C:\Users\lukasz\.dnx\packages\ClearScript.V8\5.4.3\lib\net40\v8-ia32.dll' could not be opened -- PE image doesn't contain managed metadata.
  </code></pre>
  
  <p>I would asume that those dlls are somehow not valid for web version, maybe I need to get those dlls in some different way?</p>
  
  <p>I could reproduce the issue creating new ASP.NET 5 project from WebApi template. I use single framework <code>dnx46</code>, no <code>core</code> as the projects I use are not compiled against it anyway. I use <code>ClearScript.V8 5.4.3</code>. DNX SDK version is <code>1.0.0-rc1-update1</code>.</p>
  
  <p>I am simply creating </p>
  
  <pre><code>var engine = new V8ScriptEngine();
  </code></pre>
  
  <p>in the controller method.</p>