by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Benjamin Nolmans
    @Xarkam
    RJ KUMAR
    @ratnesh8755_twitter
    Hello sir, thank you very much.. it did a great help in understanding structure.
    Sir I want to know can I use ext core 5.00 rc1 in production
    Is it safe to use
    RJ KUMAR
    @ratnesh8755_twitter
    Hello all, I want to keep extension folder when webapp published and then on published app, I want to add modules dll to extend app
    How can I achieve this? Please help
    RJ KUMAR
    @ratnesh8755_twitter
    Hello @Dimitri
    Can you please provide sample of ExtCore/ExtCore#43
    Please provide sample to load unload extension at runtime
    Benjamin Nolmans
    @Xarkam
    1. you must add your dll into extension folder and restart you add.
    2. For production use always use a stable version that is not in development
    3. it's hard time for create sample app at the ending of the year. We have many work
    Dmitry Sikorsky
    @DmitrySikorsky
    Guys, I've released 5.0.0 only with .NET Core 3 issue fixed. I decided to do so because a lot of projects are blocked on moving to .NET Core 3 because of the ExtCore, and they can't wait until I fix all that tasks. So I released it as 5.0.0. Currently I've fixed extensions loading/unloading, but this feature works partially. For now precompiled views doesn't work (I've created an issue aspnet/AspNetCore#17171, please look at it). Also, I don't know how to modify routes at runtime. I need to re-initialize routes when some extension is loaded or unloaded. But controllers and other things already work. I will try to find solution to fix this.
    Dmitry Sikorsky
    @DmitrySikorsky
    For now, I'm able to load/unload DLLs. I can resolve types and create objects. Controllers works too(!). But for now I'm not sure that it is possible to support full-features extension loading/unloading. There are some big problems on that way:1. Precompiled views doesn't work.2. It is not possible to change the endpoints.3. I didn't try, but I think there will be problems with EF data context building.4. It is not possible to register middleware defined inside extension.5. All the code that initialize something at startup won't do that when some extension is added/removed.
    So at this point I think that the best option is to find a way how to re-run application ConfigureServices and Configure methods without restarting it. As I read somewhere, something similar is done in Orchard CMS. It would be very flexible solution. I even think to make a simple way to add/remove DLLs and just restart an app. It is not possible to remove DLLs from a working application, so I think to create some temp file, then restart an app, delete that files and then load the others. But it is temp solution until I find the way to re-run Startup's code.
    What do you think?
    Chung Thành Phước
    @chungthanhphuoc_gitlab
    hello
    extcore version 5 support reload views runtime ?
    Dmitry Sikorsky
    @DmitrySikorsky
    Hi! Please see #43.
    keyboardxtreme
    @keyboardxtreme
    Hi guys, I have just bumped into this amazing project, however I am keen to know if it works with blazor?
    Dmitry Sikorsky
    @DmitrySikorsky
    Hi @keyboardxtreme, thanks for the interest. I didn't try it with blazor, but I don't think there is any issue.
    ExtCore 5.1.0 based on .NET Core 3.1 is now released.
    parker2k2
    @parker2k2
    image.png
    parker2k2
    @parker2k2
    image.png
    parker2k2
    @parker2k2
    image.png
    image.png
    image.png
    parker2k2
    @parker2k2
    image.png
    parker2k2
    @parker2k2
    image.png
    image.png

    Hi Everyone.... I was wondering if anyone might be able to offer any assistance with a problem I'm experiencing when trying to use and implement Extcore in a .NET Core 3.1 MVC based solution. My setup is as follows, I have a main .NET Core 3.1 Project called AAGOne which will act as the overall holder for all of the different modules which will be used as part of the website. To test the compiled DLL modular functionality of ExtCore I have added a test module called "CBAS" which is a .NET Core 3.1 class library. I have listed the references I have set up for the two different projects below.

    AAGOne - Holder Project

    references - ExtCore.Mvc 5.1.0, ExtCore.Mvc.Infrastructure 5.1.0, ExtCore.WebApplication 5.1.0

    CBAS - Module/Extension

    references - ExtCore.Mvc.Infrastructure 5.1.0

    In the holder project I am setting up ExtCore as shown below in the start up class, the "extensionsPath" variable is populated correctly as I can see the path generated and navigate there. I have attached screen shot labelled "Startup.cs - ConfigureServices" and highlighted the extcore call.

    Then in the "Configure" method in Startup.cs I am then requesting that the "ApplicationBuilder" make use of extcore as showin the screen labelled "Startup.cs - Configure".

    On the module "CBAS" side of things I thought I would start with setting up a really simple controller and view to test it out, so I the project structure in the screen shot labelled "CBAS Project Structure".

    In Actions/UseEndPointsAction.cs I have implemented "IUseEndpointsAction" as show in screen shot labelled "UseEndpointsAction.cs". On the CBAS project file side I have added the "EmbeddedResource" directive as shown in the screen shot labelled "CBAS.csproj".

    I am then building the solution and copying the built CBAS dll and placing this in the "Modules" folder within the holder solution as shown in screenshot labelled "Modules Location", which matches up with the appsettings.json of the holder project as shown in screenshot labelled with "AppSettings".

    When I run the project I navigate to the correct route "https://localhost:44372/default/cbasindex" and this then triggers the view error screen as shown in screen shot labelled "View Error".

    After googling around this issue I think that this may be related to this previously reported issue - ExtCore/ExtCore#22. I've tried various things but I've been unable to make progress with this....does anyone have any ideas how I can fix this problem or debug this further?

    Any help much appreciated,

    Thanks Ian

    Kevin Boon
    @inQonsole
    Hi, We are currently looking into Extcore to use in one of our new projects, is it possible for the views to be located in a template directory in the root directory so that custom templates and/or views could be created ?
    Jantje2000
    @Jantje2000

    Hi all, probably I'm doing something wrong, but if I adds addExtCore, i get an error

    warn: ExtCore.WebApplication[0]
          System.IO.FileNotFoundException: Could not load file or assembly 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
          File name: 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'
             at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
             at ExtCore.WebApplication.DefaultAssemblyProvider.GetAssembliesFromDependencyContext(List`1 assemblies)
    
    
    warn: ExtCore.WebApplication[0]
          Error loading assembly 'runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl'
    warn: ExtCore.WebApplication[0]
          System.IO.FileNotFoundException: Could not load file or assembly 'runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
          File name: 'runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'
             at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
             at ExtCore.WebApplication.DefaultAssemblyProvider.GetAssembliesFromDependencyContext(List`1 assemblies)
    
    
    warn: ExtCore.WebApplication[0]
          Error loading assembly 'runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl'
    warn: ExtCore.WebApplication[0]
          System.IO.FileNotFoundException: Could not load file or assembly 'runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
          File name: 'runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl, Culture=neutral, PublicKeyToken=null'
             at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
             at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
             at ExtCore.WebApplication.DefaultAssemblyProvider.GetAssembliesFromDependencyContext(List`1 assemblies)

    Anyone who know how to solve this? I don't add extension currently, so I don't know what the reason of this error is.

    I use .netcore 3.1, so maybe that's wrong?
    Jantje2000
    @Jantje2000
    @DmitrySikorsky Do you know how I could solve this?
    Benjamin Nolmans
    @Xarkam
    @Jantje2000 what's your linux distrib ?
    In any case, it's normal, it looks for assemblies according to your distribution. Take a good look at the name he is looking for.
    Jantje2000
    @Jantje2000
    That's the weird thing, because I am using Windows.
    Jantje2000
    @Jantje2000
    Right, that warnings did'nt have any effects, so my app is working now.
    I have another question. Is it possible to locate the dll files in a zip folder, or is that impossible?
    And if each zip folder has it's own dependencies, it could be that 1 dependency is in multiple folders. Is that possible, or should each dependency only be 1 time in it?
    Benjamin Nolmans
    @Xarkam
    @Jantje2000 ok for windows. It's same of linux :)
    For your question, look at publish an application in microsoft documentation.
    Jantje2000
    @Jantje2000
    Ehm, I want the plugins to be in a zip package. That has nothing to do with publishing an app I think?
    Jantje2000
    @Jantje2000
    Hi, I am using extcore now, but sometimes , the body in my api controller is null, however I use the [FromBody] attribute and my body isn't empty in Postman
    Anyone who knows what's the problem?
    Benjamin Nolmans
    @Xarkam
    I don't think this is a problem with extcore
    I have never had any problems with my controllers and extcore
    Johannes Jacobs
    @johmarjac
    hi, is it possible to use ExtCore for long running services too?
    For example, I want to run a .NET Core 3.1 WebApi Application which uses ExtCore. Then I want to make an Extension which is NOT invoked upon request. It more should make use of the Discord.NET Api and act as a discord bot... can i use ExtCore for something like that?
    Armarr
    @Armarr
    @johmarjac Asp Core can do this with hosted services and using ExtCore to initialize it shouldn't be an issue. https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-3.1&tabs=visual-studio
    Johannes Jacobs
    @johmarjac
    @Armarr Can I use the DI on the ConfigureServices already to call a Contract Interface which tells the service to execute?
    or how wuld you approach
    because the service would be one in an extension
    Armarr
    @Armarr
    Yeah, sounds about right