Question

I've installed nuget package manager and I really love mvc-scaffold extension. I would like to write similar tool for my projects.

Is there any API reference or some documentation for nuget I can learn from ? TIA for any suggestions.

Edit: Question is already 'answered' (thx one more time), here are some links that can be helpful:

Was it helpful?

Solution

I wrote the current version of MvcScaffolding that you mention in your question. Here's how it adds PowerShell cmdlets to the Package Manager Console:

Note that it's not actually necessary to write your cmdlets in C# and call Import-Module. A simpler alternative is to write them in PowerShell (see http://technet.microsoft.com/en-us/magazine/ff677563.aspx) and define them inline in your NuGet package's init.ps1 file.

Or, if your question is about how to add custom scaffolders to MvcScaffolding (e.g., so you can say "Scaffold MyCustomThing -somecustomparams"), then use the command "Scaffold CustomScaffolder MyCustomThing", and then edit the PS1/T4 files that appear in your CodeTemplates/Scaffolders folder. I'll blog more details about this soon.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top