Andrew Young
Andrew Young

Reputation: 1779

Change display name per configuration in MonoTouch

Is there a way to change the display name of my iPhone app per configuration (debug/release/adhoc)? I've set it up so that I can install adhoc builds side-by-side with a development build or a released build but I would like to be able to know which version/configuration I'm running when I look at the display name of the app on my phone.

I realized that I asked this same question in the regular iPhone forum but now this one is specific to MonoTouch.

Upvotes: 2

Views: 436

Answers (2)

Andrew Young
Andrew Young

Reputation: 1779

What I did was create a .plist file for each configuration type: dev.Info.plist, qa.Info.plist, prod.Info.plist. In the .plist files set the key for "Bundle display name" to the name that you want for that configuration. Add a before-build action to each configuration (Project -> Options -> Custom Commands) to replace the Info.plist file in the root of your project.

Just make sure not to check in the .plist file in the root of your project into your VCS and you're good to go.

Upvotes: 0

Jason
Jason

Reputation: 89092

It's the same answer in MonoTouch

MonoDevelop --> Project --> Project Options --> iPhone Application --> "Display Name"

I don't know of a way to easily change that automatically per build type - you could possibly setup a custom build action that would do this for you.

Upvotes: 3

Related Questions