在哪里可以找到有关 nuPack 上列出的 MvcScaffold 包的文档?

发布于 2024-09-26 09:10:41 字数 160 浏览 5 评论 0原文

我正在尝试查找有关如何在 nuPack 上使用 MvcScaffold 包的文档,但我在任何地方都找不到任何内容。

我知道我在包管理控制台中有基本的智能感知支持,但我想做一些比典型的脚手架更复杂的事情。

我希望某处会有一些文档。

有谁知道这个包的文档在哪里?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

满身野味 2024-10-03 09:10:41

Steve Sanderson 刚刚在他的博客上发布了一些有关此主题的指南 - 它们值得一读:http://blog .stevensanderson.com/category/scaffolding/

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

梦与时光遇 2024-10-03 09:10:41

我似乎也找不到实际项目的参考。
尽管 Scott Hanselman 在他的 关于 NuPack 的博客文章中提供了一个示例。通过简单的 调用脚手架power shell 脚本,因此您可以随时参考它。

共有三个可用命令:

> 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)

上面的示例仅使用强制参数,但您可以使用任何附加参数:

> Add-MvcView Edit -ModelType Product -OutputFileExtension .ascx

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
吃兔兔 2024-10-03 09:10:41

目前还没有该软件包的文档,它仍然是一个原型,您可以下载该软件包并查看源代码以查看所有选项。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文