Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
In VS2017 15.4, the current Xamarin.Android version file changed from :
Since there is no other way to get this version, I'm using this file to enable or disable features based its content (such as requiring specific features like Concurrent SGen).
Xamarin.Android and Xamarin.iOS should provide a consistent way to get the currently running version, either via a known file, or an msbuild variable.
Have you tried using $(XamarinAndroidVersion)?
Here's a quick example:
<Message Text="Xamarin.Android Version = $(XamarinAndroidVersion)" />
You might then see:
1>Task "Message" (TaskId:64)
1> Task Parameter:Text=Xamarin.Android Version = 8.1.0-19 (TaskId:64)
1> Xamarin.Android Version = 8.1.0-19 (TaskId:64)
1>Done executing task "Message". (TaskId:64)
Thanks Jon, that's great to see that it's in the latest preview :)
I was mentioning iOS as well, and I did not find this for iOS. Should I open a bug for iOS ?
(In reply to Jerome Laban from comment #2)
> Thanks Jon, that's great to see that it's in the latest preview :)
> I was mentioning iOS as well, and I did not find this for iOS. Should I open
> a bug for iOS ?
This has been available since about June. It should also be included in the current Stable. My test was done on a Preview instance as that's the one I had open at the time :)
As for the iOS equivalent, please create a bug in the iOS product. From a quick glance at their properties, I do not see one. However they will know better than myself.
Thanks! Will open a new one then.