样式和脚本在果园 [英] Styles and Script in Orchard

查看:121
本文介绍了样式和脚本在果园的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造了一个新的模块到我的果园应用。我无法通过引用样式和脚本添加到我的看法。它显示404错误的路径,即使路径是正确的。回顾一些文章后,我明白,我们需要提供Style.Require(样式名)及路径;脚本Script.Require(SCRIPTNAME)。而在我的意见做我面对错误的风格和安培; 脚本找不到。

I had created a new module to my orchard application. I'm unable to add styles and script to my views through references. It is showing 404 error to the path even though the path is correct. After reviewing some articles I understood we need to provide the path with Style.Require("stylename") & Script as Script.Require("Scriptname"). While doing it in my views I'm facing the error as "Style" & "Script" not found.

推荐答案

您必须检查.NET版本此模块是与果园版本不兼容,如果使用果园1.10,你的模块必须参考.NET Framework版本4.5 2,检查它去你的项目属性,并查看目标框架。

You must check the .net version for this module to be compatible with orchard version, if you using Orchard 1.10, your module must be reference .Net Framework version 4.5.2, to check it go to your project properties and see "Target Framework".

这篇关于样式和脚本在果园的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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