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.
When building a two-assemblies solution, if :
- The "head" uses a specific version of the Android SDK (e.g. 19)
- A dependent assembly in the same solution is build using "use latest version of the SDK"
- The latest installed version of the android SDK on the system is *not* 19
Then the build will choose .NET 4.6 as the target runtime passed to the C# 6.0 compiler, which in turn will transform "new int" into "Array.Empty<int>()" which is currently not supported in Mono.
This leads to either linker errors such as https://bugzilla.xamarin.com/show_bug.cgi?id=29882.
Unfortunately, we’re unable to reproduce this report. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Android project adding just the code necessary to demonstrate the issue.
This happened during the transition between versions of the .NET 4.6 BCL and Xamarin that did not support this method.
This does not happen anymore.