Bug 8924 - enhancement request: MonoTouch.Constants.Version equivalent in MFA?
Summary: enhancement request: MonoTouch.Constants.Version equivalent in MFA?
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.8.x
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-12-13 15:40 UTC by Iain
Modified: 2015-03-20 12:56 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Iain 2012-12-13 15:40:26 UTC
See http://forums.xamarin.com/discussion/548/monotouch-constants-version-equivalent-in-mfa

Would be handy to have a Mono for Android equivalent of the MonoTouch.Constants.Version field.

Cheers
Iain
Comment 1 hwrdprkns 2013-10-31 17:56:16 UTC
I also agree with this, it would be extremely useful.
Comment 2 Geir Ludvigsen 2015-01-28 07:29:37 UTC
This is becoming more and more important, as we for debugging bugs etc need to know quickly from logs which version of Xamarin our app was built with. Our customers run a great variety of versions of our app.
Comment 3 Jonathan Pryor 2015-03-20 12:56:21 UTC
We do not plan on providing anything equivalent to the MonoTouch.Constants class as part of our public API.

We did add a AssemblyInformationalVersionAttribute to Mono.Android.dll in Xamarin.Android 4.14 which contains equivalent information:

http://developer.xamarin.com/releases/android/xamarin.android_4/xamarin.android_4.14/

    var attrs = (System.Reflection.AssemblyInformationalVersionAttribute[])
        typeof (Java.Lang.Object)
        .Assembly
        .GetCustomAttributes(
            typeof(System.Reflection.AssemblyInformationalVersionAttribute),
            inherit: true);
    string version = attrs [0].InformationalVersion;
>   // version is like "4.13.350.144144054; git-rev-head:89776b6; git-branch:master"