An error ocurrs while compiling in release mode after upgrade to 18.1.5
Mono.Linker.MarkException: Error processing method: 'System.Void DevExpress.Xpo.DB.MSSqlConnectionProvider::CommandBuilderDeriveParameters(System.Data.IDbCommand)' in assembly: 'DevExpress.Xpo.v18.1.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void System.Data.SqlClient.SqlCommandBuilder::DeriveParameters(System.Data.SqlClient.SqlCommand)
I appreciate your patience, Franco. We researched this issue and found that it's similar to the XPO.Core - System.Drawing.Common FileNotFoundException in Xamarin.Android issue. Before version 18.1.4, a call to the SqlCommandBuilder::DeriveParameters method in our SqlServer provider was commented out. This method was not supported by .NET Core. The System.Data.SqlClient package of version 4.5.1 introduced this method to the .NET Standard. As a result, we uncommented its call in our SqlServer provider code. It appears Mono is behind in implementing certain methods/mappings to the .NET Standard library. The SqlCommandBuilder::DeriveParameters method is not implemented yet in Mono.
At the moment, you can resolve this issue in the following way:1. Update NuGet packages for Microsoft.NETCore.Platforms, .NETStandard.Library and System.Data.SqlClient to the latest versions.
2. Manually add a reference to the System.Data.SqlClient assembly to your XamarinFormsDemo.Android project. For this, navigate to the folder where NuGet packages were downloaded and find the System.Data.SqlClient assembly version for .NET Core. On my side, this path is packages\System.Data.SqlClient.4.5.1\lib\netcoreapp2.1\System.Data.SqlClient.dll.
After these steps, I can build and run this project in Release mode. Please let me know your results.