Closed djosemartine closed 4 years ago
All of the Steeltoe packages with names ending in Core
were built for ASP.NET Core, but it does look like some of the functionality could be moved to Base
packages, namely the extension you're using here. I will see what I can do
There's a wrinkle with the initial idea I had, in that we'd need to add a reference to Microsoft.Extensions.Hosting
in ConfigServerBase
or any other package we try to make this move. I'm not sure that's the best choice in our 2.x line, as that would bring that package and its dependencies in for lots of applications that don't need it. I'm inclined to defer further investigation on that until we find some other need, and suggest that change would be better suited for Steeltoe 3.x.
Something that will work right now however, would be to make these changes:
Steeltoe.Extensions.Configuration.ConfigServerBase
instead of ConfigServerCore
IConfigurationBuilder
extension instead of IHostBuilder
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(builder => builder.AddConfigServer())
Given there's a solution to the immediate problem and lack of definition around a larger scoped problem, I'm going to close the issue ~ please feel free to reopen if the proposed solution doesn't end up working for you or if there's more to say here
Thank you @TimHess, understood! Thanks for all your help
Describe the bug
There is a dependency on AspNetCoreApp on versions above of 2.3.0 for the package Steeltoe.Extensions.Configuration.ConfigServerCore
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Debugging App using docker successfully
Environment (please complete the following information):
Source Code
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Steeltoe.Extensions.Configuration.ConfigServer;
Dockerfile
Error Output