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.
Sometimes when I change the Android Link All Assemblies setting in the project properties, it is not persisted to the project file.
1) Create a new solution from the Android Application template.
2) Double-click the top-level project to show its properties.
3) Navigate to Build>>Android Build.
4) Change the configuration to Release.
5) Change the linker behavior to Link All Assemblies.
6) Wait for it to save, then open the csproj in a text editor. Search for "AndroidLinkMode". It will not appear under the Release section, even though the default is Link SDK Assemblies.
This bug is even worse than I originally reported. If I build and run a project that has <LinkMode>Full</LinkMode> (which I set in VS or a text editor), XS on Mac will remove that line and build with the default LinkMode (SdkOnly). So there seems to be no way to use the Link All Assemblies from XS!
The behavior is somewhat intermittent. I was able to build and run with LinkAll once, but the next time I ran it rebuilt and stripped it out.
Furthermore, XS and VS have different behaviors when you change this setting from the project properties dialog. VS adds these additional attributes if I set LinkMode to Full:
If they're important in one IDE then probably both IDEs should add them. It looks like XS doesn't strip these attributes out, but they're not sufficient to cause Link All to work.
Unfortunately it looks like the default value for LinkMode was changed in the targets without updating Xamarin Studio. Jon, can we please avoid doing this in future?
The additional attributes added by VS are mostly not a problem, it's just setting them to the default values. Wheareas XS omits properties with the default values. The exception is EmbedAssembliesIntoApk. XS cannot handle the default value correctly because of a bug in the targets, bug 12083.
Fixed default and added workaround for bug 12083.
*** Bug 9127 has been marked as a duplicate of this bug. ***
Today we have checked this issue with following builds:
X.S 4.0.10(build 7)
We have followed the steps and observed that after creating android application when we select platform as Release and select Link All in Build->Android Build and open .csproj file in text editor we are seeing <AndroidLinkMode>Full</AndroidLinkMode> this is the screencast for the same: http://screencast.com/t/WpJmb1UwM and we are successfully able to build and deploy application.
Please let us know is this correct step[s which we have followed to verify this issue? so that we can close this issue
Those steps look correct. Thanks!