我已经开发一个ASP.NET MVC4项目有一段时间了,我已经成功地使用了"“包,但是几天前我注意到,当创建一个新的控制器时,例如,MVCScaffolding的项不再出现。尝试运行scaffold命令还将导致以下错误:
The term 'scaffold' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
:At C:\dev\WebApplication2\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:9
+ Set-DefaultScaffolder -Name CustomTemplate -Scaffolder T4Scaffolding.CusSet-DefaultScaffolder : Cannot get an instance of En
ICollection`1 existingIdentifiers, Func`2 singularizePluralizer) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUniqueNamer`1.GetName(T item)
at Microsoft.EntityFrameworkCore.<
scaffolder with a PS1 script and a T4 template T4Scaffolding.Core.VS2015T4Scaffolding.Core.VS2015 1...T4Scaffolding.EFDbContext Makes an EF DbContext able to persist models of a given type, creatingthe Db