CI failing with an error MT2101: Can't resolve the reference 'System.String System.String::Trim(System.Char)'
See original GitHub issueDescription
The DevOps build definition is failing to build the project with the latest pre-release of the FFImageLoading (2.4.5.880-pre). it might be that the issue is more Xamarin.Forms related than FFImageLoading, so feel free to pass that onto them if necessary.
The VS 2019 (16.0.0) debug build works perfectly fine.
The reason behind using the pre-release version of the library is this: https://github.com/luberda-molinet/FFImageLoading/issues/1154
Steps to Reproduce
Expected Behavior
Build finishes successfully, without any errors
Actual Behavior
Build failes with an error:
MTOUCH : error MT2101: Can’t resolve the reference ‘System.String System.String::Trim(System.Char)’, referenced from the method ‘System.Threading.Tasks.Task`1<FFImageLoading.Work.DataResolverResult> FFImageLoading.DataResolvers.BundleDataResolver::ResolveFromBundlesAsync(System.String,System.String,FFImageLoading.Work.TaskParameter,System.Threading.CancellationToken)’ in ‘mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’. [<path_to_the_project>.iOS.csproj]
Basic Information
- Version with issue: 2.4.5.880-pre
- Last known good version: 2.4.4.859
- Platform: iOS
Screenshots
Reproduction Link / Code
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (2 by maintainers)
Top GitHub Comments
@Ruddy2007 @xhashimks I have the same problem in the Azure Pipeline. If you select the sdk version of xamarin 5_18_1, the problem will disappear. I leave the link to change the version of the sdk of xamarin in Azure Pipeline: https://go.microsoft.com/fwlink/?linkid=871629
Worked for me too