There is no more constructor of ConfigurationBuilder
having appEnv.ApplicationBasePath
as argument, but instead there is SetBasePath
method.
So change your code to:
var builder = new ConfigurationBuilder()
.SetBasePath(appEnv.ApplicationBasePath)
.AddJsonFile("config.json")
.AddJsonFile($"config.{env.EnvironmentName}.json", optional: true);