title: Managed C++ with .NET Core 2.1
body: <p>We have a library written in C++. To make it more compatible with our more modern .NET projects, we wrapped this C++ library in another .NET project. It works fine when referencing it from full .NET Framework projects (4.5, 4.6, etc.). </p>
  
  <p>I am creating a new application using .NET Core 2.1 and I am trying to reference this "wrapped-in-.NET C++ library". On my first attempt, it failed saying the assembly couldn't be loaded. I fixed this problem by installing .NET Core SDK x86 and forcing my application to use <strong>x86</strong>, not <strong>Any CPU</strong>.</p>
  
  <p>I get no build errors, but when I try to instantiate a class within this library, I get the following exception:</p>
  
  <pre><code>&lt;CrtImplementationDetails&gt;.ModuleLoadException: The C++ module failed to load.
   ---&gt; System.EntryPointNotFoundException: A library name must be specified in a DllImport attribute applied to non-IJW methods.
     at _getFiberPtrId()
     at &lt;CrtImplementationDetails&gt;.LanguageSupport._Initialize(LanguageSupport* )
     at &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* )
     --- End of inner exception stack trace ---
     at &lt;CrtImplementationDetails&gt;.ThrowModuleLoadException(String errorMessage, Exception innerException)
     at &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* )
     at .cctor()
  </code></pre>
  
  <p>Does .NET Core 2.1 support this scenario at all? </p>