3
votes

Getting the following exception after updating xamarin forms.

Exception thrown: 'System.TypeLoadException' in System.Private.CoreLib.ni.dll An exception of type 'System.TypeLoadException' occurred in System.Private.CoreLib.ni.dll but was not handled in user code Could not load type 'Xamarin.Forms.Xaml.XamlResourceIdAttribute' from assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.

I have this problem after installing xamarin forms 3.1.0.912540 from 2.5.0.121934.

Screenshot adding below:

enter image description here

1
"Version=2.0.0.0" is certainly wrong. Maybe this helps.Hans Passant
clean bin/obj folders after closing IDEmagicandre1981
You can use Visual studio installer to install .NET Framework 4.7.1.It is a software framework,not a nuget package.NuGet is a free and open-source package manager.Junior Jiang
You can try it.I solved it by this way.Junior Jiang

1 Answers

1
votes

The issue is already reported in the xamarin forums and the solution is to

  • Clean all projects in solution
  • close Visual Studio
  • Remove all bin and obj folders from all projects (shared and device (Android, iOS, UWP) specific)
  • Restart IDE, build the solution.