The SetBasePath extension method is defined in Config.FileExtensions.
You need to add a reference to the Microsoft.Extensions.Configuration.FileExtensions package.
To resolve AddJsonFile, add a reference to the Microsoft.Extensions.Configuration.Json package.