我试图通过在包管理器控制台中输入命令"Install-Package MvcMailer“来安装Mvc Mailer,但是我得到了以下错误消息:
Successfully installed 'MvcMailer 1.1'.
Successfully added 'MvcMailer 1.1' to MatchesHorsConcours.
Install-Package : The term 'Set-DefaultScaffolder' 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 the path is correct and try again.
At line:1 char:16
+ Install-Package <<<< MvcMailer
+ CategoryInfo : NotSpecified: (:) [Install-Package], CommandNotFoundException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand实际上,它调用了MvcMailer,但我猜在配置过程中发生了一些错误。
我已经安装了这两个包:
T4Scaffolding 1.0.2
MvcScaffolding 1.0.2
发布于 2012-05-31 00:05:58
我也一直在使用MVC mailer,也遇到了同样的错误。我已经通过使用T4Scaffolding和EntityFramework的最新包修复了这个问题。
转到您的项目(在本例中为MatchesHorsConcours)并启动PackageManager console (应在PackageManager控制台的默认项目下拉列表中选择MatchesHorsConcours)。
删除MVC邮件程序及其依赖项:
uninstall-package mvcmailer -RemoveDependencies安装最新的EntityFramework包
install-package EntityFramework安装最新的T4Scaffolding包
install-package T4Scaffolding现在安装MVCMailer
install-package MvcMailer这应该会起到作用-如果你在这样做后仍然遇到问题,请让我知道。
https://stackoverflow.com/questions/7123688
复制相似问题