Skip to content

Cannot use in a project that uses Startup.cs #97

@pjdupreez

Description

@pjdupreez

I am using Startup.cs for my configuration.

app.UseRotativa() in Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) method gives me a nice little error that Rotativa can only be used in a WebApplication :/

Well, turns out I can simply do RotativaConfiguration.Setup(env.WebRootPath); in Startup.cs, bypassing the extension method completely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions