问题
Unable to retrieve project metadata. Ensure it’s an SDK-style project. If you’re using a custom BaseIntermediateOutputPath or MSBuildProjectExtensionsPath values, Use the --msbuildprojectextensionspath option.
解决方法(本质上就是目录项目不对问题)
dotnet ef migrations add AddtodoItem --project src/TodoApp.EntityFrameworkCore