When using Directory.GetCurrentDirectory in version 2.2 of .net core, it is not returning the application path as it worked until version 2.1.
Example:
var config = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build();
Until version 2.1 it returned the application path as: (C: \ project \ solution \ xxxx.xxx.MVC), now it returns (C: \ Program Files \ IIS Express). Do you need anything?