https://discord.umbraco.com logo
#package-development
Title
# package-development
d

Dave de Moel

10/14/2021, 10:26 AM
btw, doesn't this work?
Copy code
public class UntestedTestComponent : IComponent
        {
            private readonly IConfigurationBuilder _builder;

            public UntestedTestComponent(IConfigurationBuilder builder)
            {
                _builder = builder;
            }

            public void Initialize()
            {
                _builder.AddJsonFile("mysettings.json");
                _builder.Build();
            }

            public void Terminate()
            {}
        }