Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Creating Features from separated module #516


User avatar
0
byteplatz created

Hello there,

We have a separated module from main app and we are trying to create a feature to enable/disable this module.

I am coding this inside the separated solution (my custom module) :

I have created a feature provider and set features like this:

context.Create(
                MyCustomModule.MyFirstFeature,
                defaultValue: "false",
                displayName: L("MyCustomModule"),
                scope: FeatureScopes.All,
                inputType: new CheckboxInputType()
            );

And added this line to MyCustomModuleCoreModule.cs:

Configuration.Features.Providers.Add<MyCustomModuleFeatureProvider>();

I can check in main app logs that this code is being called (I have couple debug logs), but the feature is not showing in tenant or edition selections.

Do I need to do anything else to make the features show up in the menus for tenant and edition selection ?

Cheers

Bruno


1 Answer(s)
  • User Avatar
    0
    byteplatz created

    After changing the AppFeatureProvider from main app and build/run with F5 the feature from my custom module showed up.

    Weird behavior that I am getting sometimes with other things as well: Sometimes when I reload while debugging (F5) my custom module dlls are not loaded or code inside it is not added to main app...

    Maybe this is a problem with assembly scanning ?

    Bruno