nuget 1.6更新后迁移无法正常工作 [英] Migrations not working after nuget 1.6 update

查看:80
本文介绍了nuget 1.6更新后迁移无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我安装了nuget 1.6之后,安装了ef迁移的power shell命令无法运行。我得到"术语'更新 - 数据库'不被识别为cmdlet的名称"...如果我重新安装nuget包它将工作,但如果我关闭visual studio
并再次打开它命令 再次消失。

解决方案

也为我打破,不知道为什么......


你可以通过在此期间从包管理器控制台运行它来解决它


import-module。\packages \ EntityFramework.Migrations.0.8.0.0 \ tools \ EntityFramework.Migrations .Commands.dll


Ever since I installed nuget 1.6 the power shell commands that ef migrations installed arent working. I get "The term 'Update-Database' is not recognized as the name of a cmdlet"... if I re-install the nuget package it will work but if I close visual studio and open it up again the commands disappear again.

解决方案

Broke for me too, not sure why...

You can get around it by running this from the package manager console in the meantime

import-module .\packages\EntityFramework.Migrations.0.8.0.0\tools\EntityFramework.Migrations.Commands.dll


这篇关于nuget 1.6更新后迁移无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆