我想创建嵌入式_ViewImports文件,该文件为特定于插件的视图设置使用,继承(更改本地化源)。问题是当我包含这样的嵌入式视图时
Configuration.EmbeddedResources.Sources.Add(
new EmbeddedResourceSet(
"/Views/",
Assembly.GetExecutingAssembly(),
"MyPlugin.Web.Views"
)
);
然后,此插件的View文件夹中的_ViewImports.cshtml将覆盖整个站点的所有其他文件夹。我需要做什么才能将其范围仅限于插件中的视图?