The appsettings.json file needs to be right-clicked and the Property 'Copy to Output Directory' needs to be set to 'Copy if newer' .