Run and debug Xamarin.Android projects
Install the Rider Xamarin Android Support plugin
This functionality relies on the Rider Xamarin Android Support plugin, which you need to install and enable.
Press Ctrl+Alt+S to open the IDE settings and select.
Open the Marketplace tab, find the Rider Xamarin Android Support plugin, and click Install (restart the IDE if prompted).
You can run and debug Xamarin.Android projects the same way as you run other application types — by configuring the application startup properties in a run configuration and then launching this configuration with the debugger attached Shift+F9 or without debugging Shift+F10.
By default, JetBrains Rider creates a necessary run configuration when you create or first open a Xamarin.Android project. You can customize this configuration or add more configurations of the same type for different launch scenarios.
Create a run configuration for Xamarin.Android project
Open the Run/Debug Configuration dialog in one of the following ways:
Selectfrom the main menu.
With the Navigation bar visible ( ), choose from the run/debug configuration selector.
Press Alt+Shift+F10 and then press 0.
In the Run/Debug Configuration dialog, click Add New Configuration Alt+Insert, choose the Xamarin.Android configuration type, and specify a name that will help you identify this configuration in the future.
Optionally, adjust the common settings of the configuration and configure before launch tasks.
Choose a startup project of Xamarin.Android type.
Select how to deploy your application when you run or debug it:
Default APK — Create an APK as specified in your build configuration.
Nothing — Don’t install an APK on a device. For example, if you prefer to install it manually.
Use the Launch flags field to pass any adb am start options to the application.
Select the Target
By default, JetBrains Rider will display a dialog where you can choose the target device/emulator each time you run or debug your application.
You can avoid this dialog by choosing Emulator or Connected device in this selector. If you do so, the Name selector appears below it, where you can specify which emulator or device should be used for running/debugging your application.
Click Apply to save the configuration.