通过 NuGet 安装时,Subsonic T4 模板在哪里?
这可能是一个愚蠢的问题,但我刚刚将 Subsonic 集成到 ASP.NET 4.0 WebForms 项目中,虽然添加了 dll 引用,但我在任何地方都看不到 T4 模板。
我认为如果您使用 SimpleRepository 方法,则不需要 T4 模板,但如果您没有通过以下方式获取 T4 模板,我真的不认为将 Subsonic 制作为 NuGet 包有什么意义它。我认为如果 Subsonic NuGet 包安装了 T4 模板并且用户在不需要它们时将其删除,而不是即使您通过 NuGet 安装了 Subsonic,也必须单独下载 T4 模板,这会更合乎逻辑。
有人知道这件事吗?
This might be a dumb question, but I just integrated Subsonic to an ASP.NET 4.0 WebForms project and while the dll reference was added, I don't see the T4 templates anywhere.
I think that the T4 templates are not required if you're using the SimpleRepository approach, but I don't really see the sense in making Subsonic a NuGet package if you're not getting the T4 templates with it. I'd think it'd be rather more logical if the Subsonic NuGet package installed the T4 templates and the user just removes them if he doesn't need them, rather than having to download the T4 templates separately even though you installed Subsonic through NuGet.
Does anyone know anything about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想添加它们,但问题是(根据 David Ebbo 的说法)引用直接放入 /bin 文件夹中。然而,T4 需要进入根目录,因为您需要将代码添加到项目中。
我知道这是一种不便 - 但没有显示系统(不确定现在是否有)可以使用“将其推入根”。
如果有变化,我会更新包:)。
I wanted to add them in but the problem is (according to David Ebbo) that the reference drops right into the /bin folder. The T4s, however, need to go into the root somewhere because you need to add the code to the project.
I know it's an inconvenience - but there was no manifesting system (not sure if there is one now) to use that would say "push this into the root".
If it changes, I'll update the package :).