Bug 650 - Change in default value for AndroidLinkMode breaks existing projects.
Summary: Change in default value for AndroidLinkMode breaks existing projects.
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 1.0
Hardware: PC Mac OS
: --- critical
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-09-06 10:21 UTC by Rodrigo Kumpera
Modified: 2011-10-12 11:41 UTC (History)
2 users (show)

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:

Description Rodrigo Kumpera 2011-09-06 10:21:46 UTC
I'm not sure exactly what's going on here.

What I saw was that samples/Hello didn't stop compiling/deploying.

JPobst helped me track this down to a missing <AndroidLinkMode> entry in Hello.csproj.

The solution was to add AndroidLinkMode>None</AndroidLinkMode> to <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">.

My concern here is that the default value of AndroidLinkMode changed between mandroid/MonoDevelop. Can this cause breakage for our users when they update?
Comment 1 Jonathan Pobst 2011-10-12 11:41:05 UTC
This was just an issue because the Hello sample predates our default template which sets AndroidLinkMode to None in Debug configuration.

The default in the targets has always been SdkOnly.