Search code examples
xamarinxamarin.formsxamarin-studio

error : Error initializing task XamlG: Not registered task XamlG


I am developing a Xamarin Forms (PCL) application for IOS and Android Platform.

My Xamarin Studio version is 5.5.4 (Build 15). I am on stable channel.

My Xamarin Forms dll version is 1.3.0.6292.

I have also added a Xamarin Forms Labs reference from NuGet, v1.2.0.

Since yesterday, whenever i am building the solution, i get following error:

error : Error initializing task XamlG: Not registered task XamlG.

Any possible resolution for this error? I have tried clean and build multiple time. Even deleted the entire source code and redownloaded everything from source control but same error.


Solution

  • This is silly.

    I just recloned the project in a new fresh folder and build it from scratch and it worked. The more i am using Xamarin Forms, the more buggy and unbaked it seems. There are random issues which get fixed just by rebuilding the project. Or like Matt pointed in his answer below, by just restarting the studio. In my programming experience with different IDEs and platforms, only Xamarin seems to have these problems regularly.