Skip to content

Question about Console Applications #151

Open

Description

I have already built a small asp.net core test app to test the functionality, and implemented it in a project at work.

I am now in the process of testing it in a small console only application.

I am using the Generic HostBuilder (not the webhostbuilder) and was wondering if extcore can be set up for this as well. I couldn't find anything in the documentation or examples.

Thanks

Xavier

Activity

  1. DmitrySikorsky commented on Dec 29, 2018

    @DmitrySikorsky
    Member

    I consider ExtCore to be modular apps framework for web applications, but I think it can work with console apps either. You just need to run AddExtCore method in order to discover assemblies and extensions. After that you will be able to use ExtensionManager class to get types or instances, to use ExtCore.Data extension etc.

  2. ryansalt commented on Mar 1, 2019

    @ryansalt

    I have a console app working but i had to write some extension methods for UseExtCore() and add a couple of methods to IConfigureServicesAction to and IConfigureAction to accept IHostBuilder instead of IApplicationBuilder. The big issue was the lack of Startup.cs when using IHostBuilder.
    I'll post a link to a repo when i can.

  3. ryansalt commented on Mar 3, 2019

    @ryansalt

    @DmitrySikorsky I've forked a branch at https://github.com/ryansalt/ExtCore/tree/fb_151_ExtCoreConsoleApplication_Tests
    This is an addition to ExtCore.Infrastructure to add IConfigureHostAction and a new project ExtCore.ConsoleApplication that uses the IHostBuilder instead of ApplicationBuilder.

    On the branch https://github.com/ryansalt/ExtCore/tree/fb_151_ExtCoreConsoleApplication_Tests
    I've included a test console app with two extensions, one an IHostedService.

    Is this something we could include in the main branch?

  4. DmitrySikorsky commented on Aug 8, 2019

    @DmitrySikorsky
    Member

    @ryansalt I think this is good idea. I will try to add that into 5.0.0.

  5. added this to the 5.0.0 milestone on Aug 8, 2019
  6. modified the milestones: 5.0.0, 6.0.0 on Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions