0

我使用 NuGet 包管理器在 VS2012 Express Web 中安装 MVCMailer - 并得到一个绿色勾号,表示它已正确安装。

但是,当尝试使用 Scaffold 命令设置模板/视图时,我看到以下内容:

PM> Scaffold Mailer.Razor UserMailer BookingUpdate
Invoke-Scaffolder : A positional parameter cannot be found that
accepts argument 'UserMailer'.
At line:1 char:9
+ Scaffold <<<<  Mailer.Razor UserMailer BookingUpdate
+ CategoryInfo          : InvalidArgument: (:) [Invoke-Scaffolder],
ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,
T4Scaffolding.Cmdlets.InvokeScaffolderCmdlet

有什么想法我哪里出错了吗?

谢谢,

标记

4

1 回答 1

1

经过更多研究,我安装了 T4Scaffold - 并重新启动了 VS - 它工作正常。我希望这对其他人有帮助。

标记

于 2012-09-29T11:14:08.327 回答