title: Replacement for AppDomain.GetLoadedAssemblies() in .NET Core?
body: <p>I'm trying to write some logic to mirror some existing logic in an original .NET application. In my <code>OnModelCreating()</code> method I want to load all current types in loaded assemblies to find the ones that need to be registered for entity type configuration in the model.</p>
  
  <p>This was done in .NET with <code>AppDomain.CurrentDomain.GetAssemblies().Select(a =&gt; a.GetTypes())</code>, however <code>AppDomain</code> no longer exists in .NET Core.</p>
  
  <p>Is there a new way to do this?</p>
  
  <p>I have seen some examples online of using <code>DependencyContext.Default.RuntimeLibraries</code> however <code>DependencyContext.Default</code> does not seem to exist anymore either.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have found now that adding <code>Microsoft.Extensions.DependencyModel</code> to a <code>.netcoreapp1.1</code> project works. However I am actually writing a solution with multiple projects and I somehow need do this type loading in my <code>.netstandard1.4</code> project where my DbContext implementation and entity type configuration is</p>