title: EF Core removes EF dependencies during migration
body: <p>I've been trying to set up EFCore with .NET6. When all my Models/Entities are inside a folder, the Initial Migration I ran removes all the dependencies(some) from the project and results in a failed build. But when I initially store my model in the root directory and run the same command it works.</p>
  <p>This is the folder structure which causes the issue</p>
  <p><a href="https://i.stack.imgur.com/jC0AP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jC0AP.png" alt="This is the folder structure which causes the issue" /></a></p>
  <p><a href="https://i.stack.imgur.com/Gco7c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gco7c.png" alt="The actual issue" /></a></p>
  <p><strong>Update</strong></p>
  <p>The last time I tried migrations worked if I placed the models and entities at the project's root, but now, even if I do, the same error happens. Please help me with this error. Thanks in advance.</p>