Sébastien Ros - Modular ASP.NET apps

Sign in to queue


This week, Sébastien Ros is back on the show to demo the fantastic support for modularity that was built for Orchard Core, but that is usable in any ASP.NET Core application.



Download this episode

The Discussion

  • User profile image

    sebastien for president.

  • User profile image

    Great Work!!!

    is it possible to include typescript files in Modules? and also somehow reference typescript file from one module and inherit from it?


  • User profile image

    Great presentation Sébastien.

    We all know that Orchard the CMS has a very nice story about module discovery but in the scenario where the CMS is not involved, is there a predefined way to let the Web Application automatically discovered the modules without previously referencing them ?


  • User profile image


    Yes you can add any static file. You can reference it directly and it will incur a direct dependency with this module. We do that in the CMS packages, where jQuery for instance is provided by a single module even though most of them depend on this script.

    The next level of features is provided by our Orchard.ResourceManagement module which can inject script/css management and manages dependencies from several modules.

  • User profile image


    We tried this approach as this is what we do in Orchard 1 but the complexity involved and degraded experience were not worth it. For instance discovering modules would mean that they have to be in a specific folder under the web app. Not talking about dotnet tooling that doesn't work with this like razor precompilation, publish, pack, ... These can all be solved but with some significant amount of custom code and hacks. After implementing both we really do prefer the "referenced" way.

Add Your 2 Cents