如何配置 ASP.NET MVC 项目以与 Boo 一起使用
我想使用 Boo 而不是 C# 构建 ASP.NET MVC 应用程序。 如果您知道配置此类项目设置的步骤,我很想知道我需要做什么。
MVC项目设置没有问题。 我试图弄清楚如何配置页面和项目以切换为使用 Boo 语言和编译器。
I want to build an ASP.NET MVC application with Boo instead of C#. If you know the steps to configure this type of project setup, I'd be interested to know what I need to do.
The MVC project setup is no problem. What I'm trying to figure out how to configure the pages and project to switch to use the Boo language and compiler.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Brail 视图引擎已实现可在 ASP.NET MVC 中使用。 MvcContrib 项目实现了该代码。 源代码位于 Google 代码上。
至于控制器,我真的不确定。 我对Boo不太熟悉。 我知道很多开发人员使用它来进行配置,而不是使用 xml 等。 我的建议是,如果 Boo 可以继承 Controller 基类并且您遵守命名约定,那么应该没问题。 如果您改变命名约定,那么您将需要实现自己的 IControllerFactory 来在请求传入时实例化 boo 控制器。
自第一个 CTP 以来,我一直在遵循 ASP.NET MVC 位,并且在整个过程中,我一直在关注 ASP.NET MVC 。没见过有人用 Boo 来编码。 我认为你将是第一个尝试实现这一目标的人。
The Brail view engine has been implemented to be used in ASP.NET MVC. The MvcContrib project implemented the code. The source code is located on Google Code.
As far as the controllers, I really am not sure. I am not that familiar with Boo. I know a lot of developers use it for configuration instead of using xml for instance. My tips would be, if Boo can inherit off the Controller base class and you stick to the naming conventions, you should be alright. If you vary off the naming conventions, well you would need to implement your own IControllerFactory to instantiate the boo controllers as the requests come in.
I have been following the ASP.NET MVC bits since the first CTP and through that whole time, I have not seen somebody use Boo to code with. I think you will be the first to try to accomplish this.
所以“与 Boo 合作”有两个层次。 一是所有代码(即控制器),二是视图。
对于代码,我假设 Boo 编译为标准 .NET 程序集,因此只需正确遵循 ASP.NET MVC 使用的命名约定就可以编写控制器。 您可能需要从 C# 或 VB 版本的 MVC Web 应用程序项目模板开始,并将一些样板代码移植到 Boo 中,以完全在 Boo 中获得解决方案(我认为 Boo 支持 Web 应用程序项目?)。
另一半是观点。 有人需要将 Brail 视图引擎移植到 ASP.NET MVC 视图引擎系统。 这可能已经完成了,但我不确定。 如果不是,那么这可能是大量的工作要做。
获得此类问题答案的最佳地点可能是 CodePlex 上的 MvcContrib 社区。
So there are two levels of "work with Boo". One would be all the code (namely, the Controllers), and the other would be the views.
For the code, I assume Boo compiles to standard .NET assemblies, so simply properly following the naming conventions using by ASP.NET MVC should allow you to write Controllers. You will probably need to start with a C# or VB version of the MVC web application project template and port some of the boilerplate code over into Boo to get the solution entirely in Boo (I presume Boo supports Web Application projects?).
The other half is views. Someone will need to port the Brail view engine over to the ASP.NET MVC view engine system. This may already be done, but I don't know for sure. If it's not, then this is probably a significant amount of work to be done.
Probably the best place to get answers to these kinds of questions is the MvcContrib community on CodePlex.