Xamarin v11.0.99.9 Release Notes

Release Date: 2020-08-05 // over 3 years ago
  • August 5, 2020 โ€” Xamarin.Android 11.0.99.9 was published as part of Visual Studio 2019 version 16.8 Preview 1 and Visual Studio 2019 for Mac version 8.8 Preview 1.

    ๐Ÿš€ Corresponding Visual Studio 2019 Preview release notes

    What's new

    ๐Ÿ—„ Soft deprecation of undocumented ProguardConfigFiles MSBuild property

    Since back when ProGuard compatibility was originally added to Xamarin.Android, the feature has included an undocumented ProguardConfigFiles MSBuild property that could be used as an alternative to the ProguardConfiguration Build Action.

    Any project authors who are currently using the ProguardConfigFiles MSBuild property are encouraged to update to the ProguardConfiguration Build Action instead.

    For example, a .csproj file could contain a use of the ProguardConfiguration MSBuild property similar to the following:

    \<PropertyGroup\> \<ProguardConfigFiles\> proguard1.cfg; proguard2.cfg; \</ProguardConfigFiles\> \</PropertyGroup\>
    

    To update a .csproj that contains a use of ProguardConfiguration like that, remove the ProguardConfiguration element from the .csproj file and instead set the proguard1.cfg and proguard2.cfg to use the ProguardConfiguration Build Action. This adds the files as ProguardConfiguration items in the .csproj file:

    \<ItemGroup\> \<ProguardConfiguration Include="proguard1.cfg" /\> \<ProguardConfiguration Include="proguard2.cfg" /\> \</ItemGroup\>
    

    ๐Ÿ›  Issues fixed and other small changes

    ๐Ÿš€ Application and library build and deployment

    • GitHub 4818: Projects that had the undocumented AndroidAotMode MSBuild property set to the experimental Hybrid value did not strip away the IL from the resulting managed assemblies as expected.
    • ๐Ÿ”” GitHub PR 4824: No longer create NOTICE files in app packages.
    • ๐Ÿš€ GitHub PR 4829: No longer fast deploy Android resources for the Assemblies:Dexes fast deployment mode.

    Application behavior on device and emulator

    • GitHub 4098: Exceptions similar to java.lang.ClassCastException: mono.android.runtime.JavaObject cannot be cast to float[] prevented passing certain C# types to some Android APIs.
    • ๐Ÿ‘ป GitHub 4632: UNHANDLED EXCEPTION was shown unexpectedly in the application output in certain cases for handled exceptions that had been propagated through both Java and managed code.

    Bindings projects

    • โš  Java.Interop GitHub PR 672: Nested Java types with protected visibility within sealed types are now generated with private visibility, avoiding C# warning CS0628.

    Thank you

    A big _ Thank You! _ to community members who contributed improvements in this
    ๐Ÿš€ release:

    Installing

    โšก๏ธ To get the new version in Visual Studio, update Visual Studio:

    For other scenarios, the latest commercial .vsix and .pkg installer packages can be found in the project README.

    Open source

    Xamarin.Android 11.1 is based on the open-source Xamarin.Android repositories: