Bug 40087 - [Cycle 6 SR3] "AOT Compilation", "Use LLVM Optimizing Compiler", and "Bundle assemblies into native code" settings are always displayed as False in the Project Properties window, even when they have just been saved as True
Summary: [Cycle 6 SR3] "AOT Compilation", "Use LLVM Optimizing Compiler", and "Bundle ...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- major
Target Milestone: 4.0.3 (C6SR3)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-04-04 20:40 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-04-06 18:19 UTC (History)
3 users (show)

Tags: BZRC6SR3S1_C6SR2S2
Is this bug a regression?: ---
Last known good build:


Attachments
Screen capture demonstrating the steps to replicate (632.91 KB, application/x-shockwave-flash)
2016-04-04 20:40 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


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:
Status:
RESOLVED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2016-04-04 20:40:41 UTC
Created attachment 15600 [details]
Screen capture demonstrating the steps to replicate

[Cycle 6 SR3] "AOT Compilation" and "Use LLVM Optimizing Compiler" settings are always displayed as False in the Project Properties window, even when they have just been saved as True


This bug is quite similar in general behavior to Bug 29323, but the affected properties are different.




## Regression status: regression in Cycle 6 – Service Release 3

BAD:  Xamarin 4.0.3.214 (0dd817c)
GOOD: Xamarin 4.0.1.147 (1cc3a99)




## Steps to replicate

1. Ensure either (a) you are logged in with an old-style "Xamarin Business" license or higher or (b) you are using Visual Studio Enterprise.

2. Create a new "Visual C# > Android > Blank App (Android)" project.

3. Set the configuration to "Release|Any CPU".

4. Open "Project Properties > Android Options > Packaging [tab]".

5. Enable "AOT Compilation" (and optionally also "Use LLVM Optimizing Compiler").

6. Save the changes.

7. Close and reopen the project properties.




## BAD Results (with Xamarin 4.0.3.214)

The "AOT Compilation" and "Use LLVM Optimizing Compiler" checkboxes show up as un-checked, despite the fact that the `.csproj` file now has those properties set to True:

> <AotAssemblies>True</AotAssemblies>
> <EnableLLVM>True</EnableLLVM>


If you save any other changes to the project properties while you have them open, the AOT and LLVM settings will now be saved as "False" in the `.csproj` file.




## GOOD Results (with Xamarin 4.0.1.147)

The "AOT Compilation" and "Use LLVM Optimizing Compiler" checkboxes correctly appear as _checked_.




## Additional version info (brief)

Visual Studio 2013 Update 5
Windows 10 (64-bit) (US/English locale)
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-04-05 00:54:34 UTC
The same behavior (with the same regression status) also affects the "Bundle assemblies into native code" setting (which is saved into the BundleAssemblies property in the `.csproj` file).

(To see the problem with "Bundle assemblies into native code" you must ensure either (a) you are logged in with an old-style "Xamarin Enterprise" license or (b) you are using Visual Studio Enterprise or higher. The setting will not be visible if you are logged in with a "Xamarin Business" license on VS Professional or lower.)
Comment 3 xamarin-release-manager 2016-04-06 18:19:12 UTC
Fixed in version 4.1.0.293 (cycle7)

Author: Jose Gallardo
Commit: c17ee721aa240e639497b555c6c7eec3e5fdb787 (xamarin/XamarinVS)