6

I'm trying to find documentation on how to use the MvcScaffold package on nuPack, but I can't find anything anywhere.

I know I have basic intellisense support in the Package Management Console, but I want to do something a little more complicated than your typical scaffolding.

I was hoping there would be some documentation somewhere.

Does anyone know where there is documentation on this package?

Lorenzo
  • 29,081
  • 49
  • 125
  • 222
Joseph
  • 25,330
  • 8
  • 76
  • 125

3 Answers3

3

Steve Sanderson just posted some howtos on his blog about this topic - they're worth reading: http://blog.stevensanderson.com/category/scaffolding/

Oskar Austegard
  • 4,599
  • 4
  • 36
  • 50
1

I can't seem to find the reference to the actual project either. Though Scott Hanselman has an example in his blog post on NuPack. The scaffolding is invoked through a simple power shell script, so you can always refer to that.

There are three commands available:

> Get-MvcViewTemplates                 (gets a list of available T4 templates)
> Add-MvcView TemplateName             (creates a view based on a T4 template:
                                        I.E. List, Details, Edit, 
                                        Create or Delete)    
> Scaffold-MvcViews -ModelType MyModel (creates views for the model)

The example above uses only the mandatory parameters, but you can use any of the additional parameters:

> Add-MvcView Edit -ModelType Product -OutputFileExtension .ascx
PHeiberg
  • 29,411
  • 6
  • 59
  • 81
  • Thanks! I was trying to find a package listing and I was coming up empty. That is definitely a big help! – Joseph Oct 10 '10 at 01:02
  • @Hurricanepkt: yes, it seems that the 0.2 version commands has changed a bit from 0.1 that i posted the link to. The latest version is currently here: http://nupackpackages.codeplex.com/SourceControl/changeset/view/a30e570cd0bd#PackageSources%2fMvcScaffold%2f0.2%2fTools%2finit.ps1 – PHeiberg Nov 16 '10 at 20:22
1

There's not doc for that package just yet, it's still a prototype you can download the package and look at the source to see all of the options.

davidfowl
  • 37,120
  • 7
  • 93
  • 103