Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MockSchool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • yoyomooc
  • MockSchool
  • Issues
  • #2

Closed
Open
Created May 17, 2021 by pipychan@pipy

【问题请教】跟着书本编程到第17.7.3章,执行Add-Migration InitialCreate,报异常

跟着书本编程到第17.7.3章, 当执行Add-Migration InitialCreate时,报异常: 【Add-Migration : 无法将“Add-Migration”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。】 然后我试着通过安装.NetEntityFrameworkcore.tools,再执行Add-Migration InitialCreate,报异常【The specified deps.json [E:\VisualStudio_Repo\MockSchoolManagement\MockSchool\MockSchoolManagement\MockSchoolManagement.deps.json] does not exist】; 然后我找到MockSchoolManagement.deps.json文件,发现它位于 项目/bin/debug/netcoreapp3.1文件夹下,于是我试着把该文件复制一份到上述报异常所提示的项目目录中,再执行Add-Migration InitialCreate,又报异常【 An assembly specified in the application dependencies manifest (MockSchoolManagement.deps.json) was not found: package: 'MockSchoolManagement', version: '1.0.0' path: 'MockSchoolManagement.dll'】;

请问我该再检查哪个地方的配置呢?希望能给个方向性的建议,如果您知道具体问题的原因就更好了!感谢!! 异常截图如下: error4

Edited May 17, 2021 by pipychan
Assignee
Assign to
Time tracking