My dev machine is sitting in local LAN, with a local static IP address. And the emulator is basically another device, so app should use the local static IP address rather than localhost or 127.0.0.1. So I have such hard coded base URI:
var baseUri = new Uri("http://192.168.0.8:9030/webapi/");
It is not nice if the other developers need to test the code. I am thinking of putting the base uri in a config file, and before deploying the emulator, update the config file with the local IP address of the dev machine.
Is there built-in config file or build mechanism in Xamarin for such purpose? or how would you test with Web API with local IIS and local emulator?
I am using Visual Studio 2017 Professional.