我在将 Piranha CMS 添加到现有项目时遇到问题。我正在使用 MVC。在我设置了此处描述的所有内容后,我收到错误“找不到入口点”。
System.Collections.Generic.IEnumerable`1.GetEnumerator()
at System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Piranha.Manager.ManagerModule.Init() in c:\Proj\GitHub\Piranha\Piranha\Manager\ManagerModule.cs:line 32
这是 SC 的一部分
private static string[] ExtensionsFolder = new[] { "~/Areas/Manager/Views/Extensions/{0}.cshtml" };
/// <summary>
/// Create the view engine.
/// </summary>
public static void Init() {
if (!Config.DisableManager) {
// Create new precompiled view engine
var engine = new PrecompiledMvcEngine(typeof(ManagerModule).Assembly) {
UsePhysicalViewsIfNewer = true
} ;
engine.PartialViewLocationFormats = engine.PartialViewLocationFormats.Union(ExtensionsFolder).ToArray();
var standard = new RazorViewEngine() ;
standard.PartialViewLocationFormats = standard.PartialViewLocationFormats.Union(ExtensionsFolder).ToArray() ;
ViewEngines.Engines.Insert(0, standard) ;
ViewEngines.Engines.Insert(1, engine) ;