Iain Smith
Iain Smith

Reputation: 9703

Is it possible to simplify build configurations for a Xamarin Android project

I created a new Xamarin App from this template: enter image description here

which has the following projects (Called NewApp):

The build configurations for iOS are: enter image description here but for Android I have: enter image description here

is there a way to simplify the Android configuration to be like the iOS one with only Debug and Release?

I tried to create more platforms like AndroidEmulator and AndroidDevice from this link but I think the IDE is doing something to hide the other options on iOS. Has anyone ever simplified the build configs?

Upvotes: 1

Views: 379

Answers (1)

Curtis Shipley
Curtis Shipley

Reputation: 8090

Yes, you can update configurations, but I suspect that is now what you want to do. The lists are likely varying for another reason.

All of the configurations are there for both. When your project is set to iOS, Visual Studio Mac will usually see what device you have selected and make the choice of iPhone or iPhoneSimulator for you and filter out options that don't make sense -- usually.

Other times you may have to select an simulator to get the iPhoneSimulator options to show. Having a device plugged in whose iOS version is compatible with your project will also affect if it shows up in the list of devices. It is one of the situations where Visual Studio Mac is trying to be helpful, but may end up being confusing.

You can update configurations, but you may want to do that for other reasons than just limiting visibility in the configuration list.

Upvotes: 1

Related Questions