【发布时间】:2022-02-05 05:08:39
【问题描述】:
我开始使用 VS 代码开发 Asp.net Core Web API。但是当我尝试创建 ef 迁移时,我得到了这个错误:
PS D:\PROJECTS\GrandExchange> dotnet ef --startup-project /API.csproj migrations add IdentityAdded --context Persistence --output-dir Migrations --project /Persistence/Persistence.csproj
MSBUILD : error MSB1009: Project file does not exist.
Switch: D:\Persistence\Persistence.csproj
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.
PS D:\PROJECTS\GrandExchange>
我的文件夹结构如下:Folder structure
那么问题出在哪里?
【问题讨论】:
标签: .net entity-framework-core dotnet-cli