question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CI failing with an error MT2101: Can't resolve the reference 'System.String System.String::Trim(System.Char)'

See original GitHub issue

Description

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:open
  • Created 4 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
RaFaGGcommented, Apr 24, 2019

@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

0reactions
MouthOfMadnesscommented, Jul 11, 2019

Worked for me too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fail, error MT2101: Can't resolve the reference ' ...
1 Answer. The default Mono version on hosted Macs is 5.12 which is most likely causing this issue. Adding a Bash script task...
Read more >
Build Fails - Can't resolve the reference 'System.String ...
The agent is set to use XCode 10.1 targetting SDK 12.1. The error is: MTOUCH : error MT2101: Can't resolve the reference 'System.String[]...
Read more >
Error MT2101: Can't resolve the reference 'System.String ...
Error MT2101 : Can't resolve the reference 'System.String System.String::Trim(System.Char)', referenced from the method 'System.Threading.Tasks.
Read more >
String.Trim Method (System)
Returns a new string in which all leading and trailing occurrences of a set of specified characters from the current string are removed....
Read more >
String.TrimStart Method (System)
Char ) method removes from the current string all leading trimChar characters. The trim operation stops when a character that is not trimChar...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found