I am deploying a web application to an on prim windows server via an Azure Release Pipeline that contains 2 tasks. IIS Web App Manage & IIS Web App Deploy.
The issue I'm running into is I need to replace the appsettings.json with a completely different file. We have 3 environments (dev/test/prod), and each of them have their own appsettings.json in source control.
I see that there is a JSON Variable Substitution, but I don't want to substitue variables, I want to say "Hey, use this file instead of this file".
How can I do this in Azure Devops? If I am going about this all wrong, please let me know. It's what my company has done for years and I really don't want to create variables in a pipeline to update my appsettings.json.
Thanks!