2
Vote

Installing MVCScaffolding 1.02 produces errors

description

PM> Install-Package MvcScaffolding
Attempting to resolve dependency 'T4Scaffolding (≥ 1.0.2)'.
Attempting to resolve dependency 'EntityFramework (≥ 4.1.10311.0)'.
Successfully installed 'MvcScaffolding 1.0.2'.
Set-DefaultScaffolder : Cannot use the default name 'View' because this clashes with an actual scaffolder name
At C:\MyDocuments\MCB\HG_Repository\CMDB\app\CMDB_MVC3\packages\MvcScaffolding.1.0.2\tools\init.ps1:42 char:22
  • Set-DefaultScaffolder <<<< -Name View -Scaffolder $viewScaffolder -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
Successfully added 'MvcScaffolding 1.0.2' to CMDB_MVC3.

PM>

After this if I attempt to scaffold a controller I get further errors...

PM> scaffold controller InventoryStatus -Force -Repository
Scaffolding InventoryStatusController...
Added database context 'Models\CMDBMVC3Context.cs'
Added 'InventoryStatus' to database context 'CMDB_MVC3.Models.CMDBMVC3Context'
Added repository 'Models\InventoryStatusRepository.cs'
Added controller Controllers\InventoryStatusController.cs
Invoke-Scaffolder : A parameter cannot be found that matches parameter name 'Controller'.
At C:\MyDocuments\MCB\HG_Repository\CMDB\app\CMDB_MVC3\packages\MvcScaffolding.1.0.2\tools\Views\MvcScaffolding.Views.ps1:18 char:38
  • Scaffold $ViewScaffolder -Controller <<<< $Controller -ViewName $_ -ModelType $ModelType -Template $_ -Area $Area -Layout $Layout -SectionNames $SectionNames -PrimarySectionName $Primar
    ySectionName -ReferenceScriptLibraries:$ReferenceScriptLibraries -Project $Project -CodeLanguage $CodeLanguage -OverrideTemplateFolders $TemplateFolders -Force:$Force -BlockUi
    • CategoryInfo : InvalidArgument: (:) [Invoke-Scaffolder], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,T4Scaffolding.Cmdlets.InvokeScaffolderCmdlet
This was all working fine in 1.01

I have uninstalled and reinstalled the MVCScaffolding package twice with the same results.

comments

putrtek wrote Apr 22, 2012 at 7:56 PM

I'm getting the same errors with Version 1.06... If you look back this error has been occurring since at least version 0.097... Has anyone figured out how to fix this? I have also uninstalled and reinstalled the MVCScaffolding package twice with the same results.

-MARK-
putrtek@gmail.com