1.I has enable PlugInSources:
return services.AddAbp<AdminWebMvcModule>(options =>
{
var plusPath = Path.Combine(_hostingEnvironment.WebRootPath, "PlugIns");
if (!Directory.Exists(plusPath))
Directory.CreateDirectory(plusPath);
options.PlugInSources.AddFolder(plusPath);
});
2.I write a RazorPageBase.cs :
public abstract class RazorPageBase<TModel> : AbpRazorPage<TModel>
{
protected RazorPageBase()
{
LocalizationSourceName = DemoConsts.LocalizationSourceName;
}
}
3.And add _ViewImports.cshtml:
@using Abp.Localization
@inherits Magicodes.UI.Demo.Views.RazorPageBase<TModel>
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4.When I use L method(E.g @L("UICollorCollection")) in view,I will get exception:
An unhandled exception occurred while processing the request.
FileNotFoundException: 未能加载文件或程序集“Magicodes.UI.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
I has enable PlugInSources:
return services.AddAbp<AdminWebMvcModule>(options =>
{
var plusPath = Path.Combine(_hostingEnvironment.WebRootPath, "PlugIns");
if (!Directory.Exists(plusPath))
Directory.CreateDirectory(plusPath);
options.PlugInSources.AddFolder(plusPath);
});
But in plus assembly when I reference a third party assembly,It's not work,and throw NotFound,Only if I move it to site bin folder. And in plus assembly,when I reference orther plus assembly where in PlugIns folder ,it also throw NotFound. Is there any way to solve it?
How to set up global default language?Such as Chinese.
I have read PlugInDemo,but it's not mvc plug demo. I want achieve mvc plug-in mode base on abp asp.net core,Can you provide guidance?