在ASP.Net MVC 4中安装mvcscaffolding

时间:2013-10-16 14:12:27

标签: asp.net-mvc-4 visual-studio-2012 nuget asp.net-mvc-scaffolding

我正在尝试使用asp.net mvc 4在项目中使用nuget在Visual Studio 2012 SP1中安装mvcscaffolding(https://www.nuget.org/packages/MvcScaffolding/) 我收到此错误

PM> install-package mvcscaffolding
Attempting to resolve dependency 'T4Scaffolding'.
Attempting to resolve dependency 'T4Scaffolding.Core'.
Attempting to resolve dependency 'EntityFramework'.
Successfully installed 'MvcScaffolding 1.0.9'.
New-Object : Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependenci
es. El sistema no puede encontrar el archivo especificado.
At C:\Desarrollo\TC\packages\MvcScaffolding.1.0.9\tools\registerWithMvcTooling.ps1:163 char:27
+     $newProvider = New-Object <<<<  $powerShellScaffolderProviderType($mvcScaffoldingProvider)
    + CategoryInfo          : NotSpecified: (:) [New-Object], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.NewObjectCommand

Successfully added 'MvcScaffolding 1.0.9' to Intranet.

我该如何解决这个问题?

0 个答案:

没有答案