Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the target "UpdateDesignTimeXaml" does not exit in the project error in Xamarin Studio

I am new to mobile application developing. When I was creating a new .xaml file in new solution in the Xamarin Studio.

It gave the error:

"the target "UpdateDesignTimeXaml" does not exit".

How can I resolve this problem?

like image 782
Nushiee Avatar asked Dec 24 '22 06:12

Nushiee


1 Answers

Build errors can occur if you have updated the Xamarin.Forms nuget to a newer version that requires UpdateDesignTimeXaml.

  • Close and reopen Xamarin Studio.

  • Clean all and ReBuild your project.

Ref: https://forums.xamarin.com/discussion/49152/problem-initializecomponent-and-pcl

A workaround for this is to remove the MSBuild:UpdateDesignTimeXaml from the Custom Tool of the xaml file properties in VS. Save, add MSBuild:UpdateDesignTimeXaml again and save again will force MSBuild to recreate the *g.cs file.

like image 82
SushiHangover Avatar answered Jan 15 '23 15:01

SushiHangover