- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 Orchard CMS 上跌跌撞撞,想覆盖 Vandelay Industries 的 RemoteRSS 小部件的默认模板。当前模板位于:
~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml
所以,
我试过将其另存为:
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cshtml
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.RemoteRss.cshtml
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\RemoteRss.cshtml
但是这些要么好像不生效,要么报错。
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cshtml
似乎没有任何影响。
~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml
但是这里的相同代码工作正常。
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.RemoteRss.cshtml
导致运行时错误:
Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\RemoteRss.cshtml
抛出运行时错误:
Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
最佳答案
您需要从您的主题项目中引用 System.Xml,以便能够覆盖该模板。
关于c# - Orchard CMS : RemoteRss from Vandelay Industries,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14416225/
我在 Orchard CMS 上跌跌撞撞,想覆盖 Vandelay Industries 的 RemoteRSS 小部件的默认模板。当前模板位于: ~/Modules/Vandelay.Industr
我是一名优秀的程序员,十分优秀!