Found multiple publish output files with the same relative path: appsettings.json

-- -- 797 Reputation points
2022-08-26T07:01:18.04+00:00

Hi

I have an asp.net core Web API project with an appsettings.json file. This project in turn references an MS Graph project which has its own appsettings.json with MS Graph configuration values.

When solution is published understandably it complains of the two appsettings.json going into the same publish folder.

As far as I can see I need both appsettings.json files. How can I resolve this issue?

Thanks

Regards

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,023 questions
{count} votes