title: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation
body: <p>I am getting this error whenever I try and run a webjob project with application insight and entity framework.</p>
  
  <blockquote>
    <p>System.IO.FileLoadException: 'Could not load file or assembly
    'System.Runtime.InteropServices.RuntimeInformation, Version=0.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
    dependencies. The located assembly's manifest definition does not
    match the assembly reference. (Exception from HRESULT: 0x80131040)'</p>
  </blockquote>
  
  <p>I have installed the following nuget packages</p>
  
  <p>Microsoft.Azure.WebJobs.Logging.ApplicationInsights version 2.1.0-beta4</p>
  
  <p>Microsoft.Extensions.Logging version 2.0.0</p>
  
  <p>Microsoft.Extensions.Logging.Console version 2.0.0.</p>
  
  <p>This all works with a new Visual studio 2017 webjob project, its when I try and include an existing code base, primarily using entity framework that I get this error. When I look at the reference in the one that works I don't have the System.Runtime.InteropServices.RuntimeInformation, yet it has been added to the project with entity framework. It seems to be part of .net standard, but how come I don't need .net standard for my new console app!</p>
  
  <p><a href="https://i.stack.imgur.com/pa5el.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pa5el.png" alt="enter image description here"></a></p>
  
  <p>I'm not sure why its looking for Version 0.0.0.0 either as the one I have is 4.0.2.0</p>
  
  <p>I have also tried adding this to the project file but this didn't work.</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;AutoGenerateBindingRedirects&gt;true&lt;/AutoGenerateBindingRedirects&gt;
     &lt;GenerateBindingRedirectsOutputType&gt;true&lt;/GenerateBindingRedirectsOutputType&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated</p>
  
  <p>Many thanks</p>