I have 5 Project in One solution In that Email service is one of the Class library i have when i try to get the Directory path its return main project path only here my code.
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()+ ".EmailService")
.AddJsonFile("appsetting.json");
IConfigurationRoot configuration = builder.Build();
extra i have added a ".EmailService". there is any solution to get path?