按照果园教程 - http://skywalkersoftwaredevelopment.net/blog/writing-an-orchard-webshop-module-from-scratch-part-7
当我将上述链接中的第 4 个黑屏截图粘贴到我的项目中时发生错误(请参见下面的代码)
using Orchard.UI.Resources;
namespace Skywalker.Webshop
{
public class ResourceManifest : IResourceManifestProvider
{
public void BuildManifests(ResourceManifestBuilder builder)
{
// Create and add a new manifest
var manifest = builder.Add();
// Define a "common" style sheet
manifest.DefineStyle("Skywalker.Webshop.Common").SetUrl("common.css");
// Define the "shoppingcart" style sheet
manifest.DefineStyle("Skywalker.Webshop.ShoppingCart").SetUrl("shoppingcart.css").SetDependencies("Skywalker.Webshop.Common");
}
}
}
程序集 'Orchard.Framework, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null' 使用 'System.Web.WebPages, Version =2.0.0.0 Culture=neutral, PublicKeyToken=31bf3856ad364e35' 它的版本高于参考程序集' system.webPages,版本=1.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35'
有谁知道我该如何解决这个问题?感谢您的任何回复
编辑 错误来自引用样式表: manifest.DefineStyle("Skywalker1.Webshop.Common").SetUrl("common.css");
manifest.DefineStyle("Skywalker1.Webshop.ShoppingCart").SetUrl("shoppingcart.css").SetDependencies("Skywalker1.Webshop.Common");*
但我无法解决它......有什么想法吗?