【问题标题】:Where can I find the InlinePageParser class?在哪里可以找到 InlinePageParser 类?
【发布时间】:2013-03-10 08:32:00
【问题描述】:

找到了几个解析 cshmtl 文件的示例后,我想自己尝试一下,但在任何可用的程序集或命名空间中都找不到 InlinePageParser 类。我用 VS 2012 安装了 MVC3 和 4,我有 WebMatrix。

我正在查看的示例有导入:

using Microsoft.WebPages.Compilation;
using Microsoft.WebPages.Compilation.Parser;

一些读者发现Microsoft.WebPages 已被System.Razor 取代,但新命名空间只有System.Web.Razor.Parser,对InlinePageParser 一无所知。一个班级怎么会就这样消失?它做了什么可怕的事情吗?

【问题讨论】:

    标签: parsing razor dynamic-compilation


    【解决方案1】:

    这个类现在称为RazorParser,是System.Web.Razor.dll 程序集的一部分。

    【讨论】:

      猜你喜欢
      • 2011-12-06
      • 2012-02-04
      • 2015-02-23
      • 2010-09-14
      • 1970-01-01
      • 2012-11-30
      • 2011-08-22
      • 2014-12-14
      • 2012-05-04
      相关资源
      最近更新 更多