Skip to content

Instantly share code, notes, and snippets.

@alanmcgovern
Created November 8, 2011 11:13
Show Gist options
  • Save alanmcgovern/b34533235d56f4382e28 to your computer and use it in GitHub Desktop.
Save alanmcgovern/b34533235d56f4382e28 to your computer and use it in GitHub Desktop.
static void ThrowIfNotInstalled ()
{
if (!MonoDroidFramework.IsInstalled) {
var title = GettextCatalog.GetString ("Mono for Android is not installed");
var message = GettextCatalog.GetString ("The Mono for Android SDK is required to " +
"develop applications for Android. Please install Mono for Android, you can " +
"download it from the Xamarin website.{0}{0}http://android.xamarin.com", Environment.NewLine);
throw new UserException (title, message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment