可以编译 Razor 视图吗? [英] Can Razor views be compiled?

查看:21
本文介绍了可以编译 Razor 视图吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以编译 Razor 视图,例如基于 WebForm 的视图?

I was wondering if Razor views could be compiled, like WebForm based views?

编译 Razor 视图是否有意义?为什么有人想要这样做?

Does it even make sense to compile Razor views and why would somebody want to do that?

推荐答案

是的,你可以.看看下面的帖子:将你的 asp.net mvc Razor 视图编译成一个单独的 dll

Yes, you can. Take a look at the following post: Compile your asp.net mvc Razor views into a seperate dll

这是关于如何将 razor 视图编译为单独的 dll 的分步"指南.我不知道这是否是您的目标,但它肯定会让您朝着正确的方向前进.

It's a "step-by-step" guide on how to compile your razor views into a separate dll. I don't know if that's what you aim to do but it'll definitely get you in the right direction.

这篇关于可以编译 Razor 视图吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆