A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
so I can set up different endpoints for use with API calls depending on if it is release or debug when archiving for publishing.
Do you mean execute different code in debug and release mode? If so, try using the conditional compilation of C# preprocessor directives.
private void Button_Clicked(object sender, EventArgs e)
{
#if DEBUG
//perform the work
#else
//perform the work
#endif
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.