Getting error in building MyTunes exercise code in XAM110

I get the following error (has nothing to do with code I added or changed):

/Users/vkowalski/Projects/XAM110-ex1-start/MyTunes.Shared/SongLoader.cs(12,12): Error CS0012: The type System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' (CS0012) (MyTunes.iOS)

Anyone know why I get this and how to resolve it?

Answers

  • VincentKowalski.6205VincentKowalski.6205 USUniversity ✭✭

    @VincentKowalski.6205 said:
    I get the following error (has nothing to do with code I added or changed):

    /Users/vkowalski/Projects/XAM110-ex1-start/MyTunes.Shared/SongLoader.cs(12,12): Error CS0012: The type System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' (CS0012) (MyTunes.iOS)

    Anyone know why I get this and how to resolve it?

    by the way, I get this from the following line of code in the exercise:

                return JsonConvert.DeserializeObject<List<Song>>(await reader.ReadToEndAsync());
    
  • rene_ruppertrene_ruppert DEXamarin Team, University, XamUProfessors Xamurai

    Have you tried to clean the solution and also restart your IDE? Which platform and IDE are you seeing this on?

  • VincentKowalski.6205VincentKowalski.6205 USUniversity ✭✭

    I am using Xamarin Studio

Sign In or Register to comment.