views:

61

answers:

2

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?

+1  A: 

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
Thanks! I was trying to find a package listing and I was coming up empty. That is definitely a big help!
Joseph
+1  A: 

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.

dfowler