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

-- -- 957 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

Developer technologies ASP.NET ASP.NET Core
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.