You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Xamarin.Android.Build.Tasks] Switch to use $(Optimize) to control which runtime is installed. (#528)
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=53787
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=53900
In mono 4.9 `$(DebugType)` Full|Portable|PdbOnly are all the same
thing, so we cannot reliably use those values to control which
runtime is installed in the package.
Instead we should use `$(Optimize)` which is only used on Release
configurations (why Optimize a debug build!).
This commit switches over to using `$(Optimize)` to control the
debug/release runtime selection.
<AndroidUseDebugRuntimeCondition="'$(AndroidUseDebugRuntime)' == '' And '$(AndroidUseSharedRuntime)' == 'False' And '$(EmbedAssembliesIntoApk)' == 'True' And ('$(DebugSymbols)' != 'True' Or '$(DebugType)' != 'Full' Or '$(DebugType)' != 'Embedded')" >False</AndroidUseDebugRuntime>
189
+
<AndroidUseDebugRuntimeCondition="'$(AndroidUseDebugRuntime)' == '' And '$(Optimize)' == 'True'" >False</AndroidUseDebugRuntime>
<MonoSymbolArchiveCondition=" '$(MonoSymbolArchive)' == '' And '$(AndroidUseSharedRuntime)' == 'False' And '$(EmbedAssembliesIntoApk)' == 'True' And '$(DebugSymbols)' == 'True' And ('$(DebugType)' == 'PdbOnly' Or '$(DebugType)' == 'Portable')" >True</MonoSymbolArchive>
192
+
<MonoSymbolArchiveCondition=" '$(MonoSymbolArchive)' == '' And '$(AndroidUseSharedRuntime)' == 'False' And '$(EmbedAssembliesIntoApk)' == 'True' And '$(DebugSymbols)' == 'True' And '$(Optimize)' == 'True'" >True</MonoSymbolArchive>
0 commit comments