我正试图在其文档中的this tutorial之后的 MVC 3站点上设置Combres。
我遵循了所有的步骤,但是当我运行时出现以下错误:
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'System.Web.Mvc.UrlHelper' does not contain a definition for 'CombresLink' and no extension method 'CombresLink' accepting a first argument of type 'System.Web.Mvc.UrlHelper' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 5:
Line 6: @Sprite.ImportStylesheet("~/App_Sprites/")
---> Line 7: @bresLink("siteJs")
Line 8:
Line 9: @RenderSection("HeadScripts", required: false)siteJs是conbres.xml文件中的javascript资源集引用。
在我的网络配置中,我有:
(这是使用不同版本的System.Web.Routing.UrlRoutingModule,而不是本教程中提到的版本。如果我尝试从教程中引用版本,我不能因为我没有较旧的DLL。)
我该如何正确设置它?