title: referencing .NET framework 4 dll in .NET core 2.0
body: <p>I have some dll that is written in <code>.Net</code> framework <code>4.0</code> and I can't run my program when I'm referencing it to my project which is written in <code>.NET core 2.0</code>.</p>
  
  <p>Although my IDE (vs 2017) can recognize the objects imported from that dll correctly in run time Im having the following exception:  </p>
  
  <pre><code>System.BadImageFormatException: 'Could not load file or assembly 'A_dotnet_4.0_A, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0ad20d08c672086a'. An attempt was made to load a program with an incorrect format.'
  </code></pre>
  
  <p>I tried to:</p>
  
  <ol>
  <li>change my settings to any CPU as I saw in a post <a href="https://stackoverflow.com/questions/5229310/system-badimageformatexception-could-not-load-file-or-assembly">here</a> </li>
  <li>tried to clean-rebuild my project.</li>
  </ol>
  
  <p>Is it even possible? and if it does, how should I do so.
  In the following <a href="https://github.com/dotnet/core/issues/606" rel="noreferrer">link</a> is seem like it is possible - I just can't understand how.</p>