title: MigraDoc and .NET Core 2.0
body: <p>I have made a class library for PDF-generation. It is implemented using PDFshart-MigraDoc (the core package*). The class library itself is made with .NET Standard as its target framework. </p>
  
  <p>I can use the class library in classic C# projects (like WinForms), but if I try to use it with .NET Core 2.0, I get the following error:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.Drawing.Common,
    Version=0.0.0.0, Culture=neutral, PublicKeyToken=xxxx'. The system
    cannot find the file specified.</p>
  </blockquote>
  
  <p>I guess the reason for this, could be that MigraDoc is using 'System.Drawing' in its implementation, which is (as far as I know) not supported by the .NET Core framework. </p>
  
  <p>However, that doesn't really solve my problem, which is that I need the class library to work for all .NET frameworks. I have tried to include the NuGet package <strong>CoreCompat.System.Drawing</strong>, based on advise from <a href="https://stackoverflow.com/questions/44428405/im-using-net-core-with-c-sharp-on-linux-lib-system-drawing-is-missing">this post</a>. But this has been without effect, probably because MigraDoc is still trying to use the "original" <code>System.Drawing</code> library.</p>
  
  <p>Is there any way, in which I can get my class library to work for .NET Core? Or am I out of luck...?</p>
  
  <p><em>Note: The MigraDoc Core Package has nothing to do with the .NET Core Framework. The clash of names is merely a coincidence.</em></p>