title: Entity Framework - The migrations configuration type was not be found in the assembly
body: <p>I have multiple <code>DbContext</code>s in a C# project and I'm trying to enable migrations. When I specify the full command, i.e.:</p>
  <pre><code>Enable-Migrations -ContextTypeName Models.Account.AccountDetailDbContext
  </code></pre>
  <p>A migrations folder is created, with the configuration class, but I then get a message:</p>
  <blockquote>
  <p>Checking if the context targets an existing database...</p>
  </blockquote>
  <p>And then</p>
  <blockquote>
  <p>The migrations configuration type 'Portal.WebUI.Migrations.Configuration' was not be found in the assembly 'Portal.WebUI'.</p>
  </blockquote>
  <p>Even though it has just created the file, it can't find it.</p>
  <p>I have the correct project selected in the Package Manager Console</p>
  <p>I have tried the command using <code>-verbose</code>, but it gives no additional information</p>
  <p>If I copy the dbcontexts and classes into a new project then it all works, so it must be something in this existing project that is making the migration fail, but I can't tell what it is.</p>