Base solution for your next web application

Activities of "goldstar25"

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?

How to set up global default language?Such as Chinese.

ASP.NET Core version

<cite>ismcagdas: </cite> Hi,

Are you using ASP.NET MVC 5.x or ASP.NET Core version ?

ASP.NET Core

<cite>ismcagdas: </cite> Hi,

In ASP.NET Core version, currently it is not possible by default. Please check this issue comment to implement it <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/387#issuecomment-271833997">https://github.com/aspnetzero/aspnet-ze ... -271833997</a>.

Let us know if you have any problems.

Thanks.

In ASP.NET Core version,currently it can't set default language by code?

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?

<cite>ismcagdas: </cite> Hi,

Normally this is possible. Which assembly do you try ? Can you send it to <a href="mailto:[email protected]">[email protected]</a> ?

Also, the assembly in the PlugIns folder must not be referenced in the project.

My run environment is .NET Core. I referenced Magicodes.Sms.Alidayu.Core,you can get it from nuget.I think plus assembly in plus folder can't referenced any assembly ,Including other plugins assembly.

I find a method "GetAdditionalAssemblies",Do not know if there is any use?

<cite>ismcagdas: </cite> Hi,

I have tried this scenario and it didn't throw any exception for me.

  • I have referenced this package to my web project <a class="postlink" href="http://www.nuget.org/packages/Magicodes.Sms.Alidayu.Core/">http://www.nuget.org/packages/Magicodes ... dayu.Core/</a>.
  • Then copied it's dll to PugIns folder.
  • Then I removed nuget package from my project.

Can you try it in this way ?

And your project's Target Framework must be .Net Framework 4.6.1

  1. I Add a project name's "Magicodes.Abp.Sms.Application",and referenced this package " Magicodes.Sms.Alidayu.Core" from nuget,this is project.json:
{
  "version": "1.0.0-*",

  "dependencies": {
    "Abp": "1.2.1",
    "Magicodes.Abp.Sms.Core": "1.0.0-*",
    "Magicodes.Admin.Application": "1.0.0.0-*",
    "Magicodes.Sms.Alidayu.Core": "1.0.4"
  },

  "frameworks": {
    "net461": {}
  }
}
  1. I copy these dlls to web project’s "wwwroot\PlugIns" folder:

Magicodes.Abp.Sms.Core.dll Magicodes.Sms.Alidayu.Core.dll Magicodes.Sms.Core.dll

  1. I run this project,and get this exception:
AbpInitializationException: Could not get module types from assembly: Magicodes.Sms.Alidayu.Core, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null
Abp.PlugIns.FolderPlugInSource.GetModules()
Abp.PlugIns.PlugInSourceExtensions.GetModulesWithAllDependencies(IPlugInSource plugInSource)
System.Linq.Enumerable+<SelectManyIterator>d__16.MoveNext()
System.Linq.Enumerable+<DistinctIterator>d__63.MoveNext()
System.Collections.Generic.List..ctor(IEnumerable<T> collection)
System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source)
Abp.Modules.AbpModuleManager.FindAllModuleTypes(out List<Type> plugInModuleTypes)
Abp.Modules.AbpModuleManager.LoadAllModules()
Abp.AbpBootstrapper.Initialize()
Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app)
Magicodes.Admin.Web.Startup.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in Startup.cs
+
            app.UseAbp(); //Initializes ABP framework.
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

so I think orthers dll no AbpModule can't put in plus folder. even if can put in this folder,will not find it.

thanks,this is OK!

It's Ok and no exception.but if I not referenced these dlls ,I can't use these dlls in plus project.

Showing 1 to 10 of 46 entries