Bug 37825 - [Android] AOT and LLVM options are disabled for custom Release configration
Summary: [Android] AOT and LLVM options are disabled for custom Release configration
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.0.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.1.3 (C7SR2)
Assignee: Juan Marcelo Tondato
Depends on:
Reported: 2016-01-20 06:13 UTC by Prashant Cholachagudda
Modified: 2017-08-01 10:27 UTC (History)
12 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 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 Prashant Cholachagudda 2016-01-20 06:13:43 UTC
The AOT and LLVM options are greyed out when using the custom build configuration.

# Steps to reproduce
1. Create Android project
2. Create a custom release build configuration based on "Release" config, call it "Release - Free"
3. Switch to "Release - Free" config
4. Open the Project Properties, and navigate to Android Options/Packaging

# Expected result 
The  AOT and LLVM options should be enabled to check/uncheck

# Actual result
The AOT and LLVM options are greyed out

# Version Information
(This is reproducible on VS 2015 too)

Microsoft Visual Studio Professional 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Professional

Team Explorer for Visual Studio 2013 06177-004-0447006-02630
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0447006-02630
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0447006-02630
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0447006-02630
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0447006-02630
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0447006-02630
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 12.5.60612.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Web Apps
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.30612.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.4
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

InstallShield Limited Edition
InstallShield. For more information visit the Flexera Software website at <http://www.FlexeraSoftware.com>. Copyright © 2013 Flexera Software LLC. All Rights Reserved.

Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager 2.8.60610.756
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Xamarin (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Ken Sykora 2016-02-04 20:52:06 UTC
I'm also experiencing this issue. I've gone as far as to go through my .csproj file and ensure that the sections for my custom configuration and my Release configuration match up exactly, yet I am still not seeing the checkbox for AOT or LLVM enabled.

However, when I set it in the .csproj and run a build, AOT runs. This seems to just be a UI bug in the visual .csproj editor for the Android Options tab.
Comment 2 Tim Brand 2016-05-04 11:29:12 UTC
I'm having this same behaviour on my iOS project.
Created a new build configuration and unable to set the LLVM for my iOS build. Manually enabled it via the .csproj-file of my iOS-project and it seems to work fine then.
In the UI the checkbox is also enabled now, but still can't switch it
Comment 4 Robert 2016-06-11 01:59:08 UTC
I'm getting this with the latest Cycle 7
Comment 5 Robert 2016-06-11 04:31:15 UTC
I'm using VS 2015, enterprise Xamarin license. The AOT and LLVM options are disabled like they are in debug.

Repro create a custom config based on Release.

Xamarin Studio is fine, this just affects Visual Studio.
Comment 6 Jose Gallardo 2016-06-15 12:43:47 UTC

The patch wasn't included in latest stable bits (cycle 7). I'm setting the target milestone to Cycle 7 Service Release 1, and I'll mark it back to resolved once the patch has been backported to the Release trunk.

Comment 7 Miha Markic 2016-06-16 08:47:15 UTC
For workaround, just copy <PropertyGroup> settings in .csproj file. VS will still show grayed/unchecked but build will use those settings.
Comment 8 Miha Markic 2016-06-16 08:48:15 UTC
Duh, sorry, missed that this workaround was already mentioned :)
Comment 10 xamarin-release-manager 2016-08-03 15:56:16 UTC
Fixed in version (cycle7)

Author: Mauro Agnoletti
Commit: 83fb6953c5f949d9972d12b974a76573cbec1157 (xamarin/XamarinVS)
Comment 11 Solvum Developer 2017-08-01 10:27:04 UTC
Still/again broken. LLVM is still disabled despite debugging being disabled. This bug ticket lacks the specified information which propertygroup is missing to have the workaround work to specify it manually.

Microsoft Visual Studio Enterprise 2017 
Version 15.2 (26430.15) Release
Microsoft .NET Framework
Version 4.7.02053

Installierte Version: Enterprise

Architekturdiagramme und Analysetools   00369-60000-00001-AA742
Microsoft-Architekturdiagramme und Analysetools

Visual Basic 2017   00369-60000-00001-AA742
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA742
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA742
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA742
Microsoft Visual F# 4.1

Allgemeine Azure-Tools   1.9
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

ASP.NET und Webtools 2017   15.0.30503.0
ASP.NET und Webtools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service-Tools v3.0.0   15.0.30209.0
Azure App Service-Tools v3.0.0

JavaScript-Sprachdienst   2.0

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP-Projektsystem   2.0
JavaScript UWP-Projektsystem

JetBrains ReSharper Ultimate 2017.1.3    Build 108.0.20170613.154143
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet-Paket-Manager   4.2.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter "http://docs.nuget.org/".

ResXManager   1.4.526.0
Manage localization of all ResX-Based resources in one place. Shows all resources of a solution and let's you edit the strings and their localizations in a well-arranged data grid.

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

TypeScript-Tools für Visual Studio

VC-Paket für Microsoft Visual Studio   1.0
VC-Paket für Microsoft Visual Studio

Visual Studio Tools für universelle Windows-Apps   15.0.26430.06
Mit den Visual Studio Tools für universelle Windows-Apps können Sie eine universelle App-Erfahrung erstellen, die auf jedem Gerät genutzt werden kann, das Windows 10 ausführt: Smartphone, Tablet, PC und viele weitere Geräte. Das Microsoft Windows 10 SDK ist in den Tools enthalten.

Xamarin (fec6f88)
Visual Studio-Erweiterung, um Entwicklung für Xamarin.iOS und Xamarin.Android zu ermöglichen.

Xamarin.Android SDK (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (ad35de4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.