Razor Generator:模糊的调用和资源文件问题

时间:2014-01-16 22:56:37

标签: c# asp.net-mvc razor razorgenerator ambiguous-call

我目前正在努力让Razor Generator与我的Web应用程序一起使用。我已经按照本教程http://stacktoheap.com/blog/2013/01/19/precompiling-razor-views-in-asp-dot-net-mvc-3/

进行了操作

我的项目遇到了很多错误。

The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.PartialExtensions.Partial(System.Web.Mvc.HtmlHelper, string, object)' and 'System.Web.Mvc.Html.PartialExtensions.Partial(System.Web.Mvc.HtmlHelper, string, object)'

以及

The type or namespace name 'UIStrings' does not exist in the namespace 'Resources' (are you missing an assembly reference?)

其中UIStrings只是一个包含字符串的资源文件

</span>@Resources.UIStrings.ViewOptionsText</span>

我也打开MVCBuildViews并且在安装Razor Generator之前这些错误不存在。似乎我已经迷失了为什么会发生这些错误。

0 个答案:

没有答案