Internal compiler error @ Encoding.UTF8.GetString(byte[]) and VS 15.7

AndrewNemtsevAndrewNemtsev USMember ✭✭
edited May 2018 in Xamarin.iOS

Today IDE were upgraded to VS for Mac 7.5 (build 1254) and my project stops to compile because of following error:
Internal compiler error: The method or operation is not implemented. (CS0584)

This error is caused by following expression:
System.Text.Encoding.UTF8.GetString(byte[])

Build > General > C# Language Version is set to "Default".

Does anybody have the same issue with Encoding.UTF8.GetString() method and latest stable version of VS for Mac ?

PS I checked above error at new test project. The minimal example to reproduce this error is:

var test = Encoding.UTF8.GetString(Convert.FromBase64String("dGVzdA=="));

Tagged:

Best Answer

  • AndrewNemtsevAndrewNemtsev US ✭✭
    Accepted Answer

    Solved by upgrading Xcode to latest 9.3.1 and complete VS for Mac 15.7 reinstall.
    Very strange behaviour....

Answers

  • AndrewNemtsevAndrewNemtsev USMember ✭✭
    Accepted Answer

    Solved by upgrading Xcode to latest 9.3.1 and complete VS for Mac 15.7 reinstall.
    Very strange behaviour....

  • PavelSichPavelSich GBInsider, University ✭✭

    Also make sure that you have the right runtime selected.

    https://cl.ly/210n3t1j2X1y

    If you have older one, then it shows the errors like you mentioned.

Sign In or Register to comment.