There is a "Data" project containing the context of app, and the root project "TheFarmersMarketApp" with reference to Data project. The main project is written on WPF.
Add-Migration "Initial Migration" -Project Data -StartUpProject TheFarmersMarketApp
returns
Could not load assembly 'Data'. Ensure it is referenced by the startup project 'TheFarmersMarketApp'.
Additionally, I changed "Default project" field on "Data" and "Models"(ugh...) projects and restarted my laptop to be sure that all necessary services are turned on.
There are some screenshots of Visual Studio, if it is easier to understand the problem visually.
PackageManagerConsole + SolutionExplorer + TheFarmersMarket.csproj windows


Please make sure that you add the Data assembly into the project TheFarmersMarketApp. Please make sure that all projects that need to reference this project have a direct reference to it, as long as it does not cause a circular dependency or other issues.