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
First of all you need to select a proper project in your Nuget Package Manager Console. As you can see on your first screen the default project is TheFarmersMarketApp, but it is not right. You need to select the Data project, because your migrations must lay near your context class.
Then you should use a short version of your command: