How to set environment variables for Android Run/Debug configuration

Answered

Hi

I have a .NET Maui project. In my iOS run configuration there's a field/label where i can supply Environment variables. 

For an Android run configuration, however, there is no such field (only launch flags). How do I supply env variables such that they'll be picked up in the code with Envrionment.GetEnvironmentVariable?

Thanks

 

0
1 comment
Official comment

Hello Brightly Lit ,

Thank you for reaching Rider Forum.

Unfortunately, this feature is not available at the moment. I have created a feature request: RIDER-125191 Add Environment variables to the Android Run Configuration. Please upvote it to get updates on its status.

Let me know if you have any further questions.

Please sign in to leave a comment.