Hi! I've released version 4.1.0. Added SaveAsync to the IStorage interface.
@DmitrySikorsky Hi. How can I get another services in repo? When I try to get them in the constructor I get the error "Constructor on type 'APP.Repositories.XXXRepository' not found."
@DmitrySikorsky solved by manually using ExtensionManager.GetInstance with needed args. It will be better if you'll resolve needed params automatically.
Hi Nastya! Sorry for the late answer, didn't look here for a while. Please review this issue, maybe you could add something there. Thanks. ExtCore/ExtCore#164
guys i have a react question
in our mvc app we are integrating react but i want to keep admin side non react
so i am using reactjs.net for this, have anyone tried this
does react routing works side by side or do we need to reqrite everything?
Chung Thành Phước
Make it possible to load extensions at runtime ?
Hi @aloksharma1, sorry, can't answer react questions :(
@chungthanhphuoc_gitlab I think it will be possible in ExtCore 5.0.0 (I'm currently on it), but not sure about extensions unloading. Because current extensions mechanism uses application parts, and I don't see any way to remove a part after it is added.
Oh, I can see that it should be possible :) Will write here when have something working.
I looked at the breaking changes with net core 3. I wonder if we should not maintain a branch for .net core 2.2 and one for 3.0 and after. A lot of tools like swagger are not yet up to date and no dates are given for compatibility
@DmitrySikorsky Hey there, just updated to 5.0alpha sincewe migrated to .net core 3 I have an issue where the embedded resource files arent being discovered from non referenced extensions
Hi @Kukks, thanks for the information. I've also updated ExtCore-Sample project, and I have tested it with CSS file from the extension's DLL file. It works with no problems. Views from resources ARE NOT discovered anymore.
Please take a look at that sample or share your code.
@Xarkam I have created tag and release, so we will be able to create a branch any moment we need it.
Now I'm goint to fix task by task, and release a new alpha every 1-2 tasks.
Please provide sample to load unload extension at runtime
you must add your dll into extension folder and restart you add.
For production use always use a stable version that is not in development
it's hard time for create sample app at the ending of the year. We have many work
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.
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?