Skip to content

ExcelPackage.Configure does not set IConfiguration for license info. #2312

@swmal

Description

@swmal

This should work:

var configuration = new ConfigurationBuilder()
    .SetBasePath(Directory.GetCurrentDirectory())
    .AddJsonFile("jsconfig1.json", optional: false, reloadOnChange: true)
    .Build();

ExcelPackage.Configure(options => options.Configuration = configuration);

var p = new ExcelPackage();

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions