We are currently working on a Xamarin Forms (.NET Core) application. We use Microsofts DevOps for the code repo, building and deployment.
Since we want to test newly developed features in a safe testing environment, we need to configure the app before building. At the bare minimum we need to swap out the backend uri (e.g. one for testing and one for production).
We thought about using pre-compiler flags, but we would like to keep the configuration away from the code if possible.
Is there an elegant solution or a best practice for handling that?