Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XamlFiles parameter is not supported by XamlGtask

Tags:

xamarin

I just loaded my xaml solution and tried debugging and I got these errors. Earlier in the day I updated my Xaml but I ran into errors with the corresponding Xcode version. I enabled the managed header and started to download the latest version of Xcode that I could (9.2) and that worked this morning, but it has now stopped working. Any ideas?

/Users/rehamathur/Projects/TestApp/packages/Xamarin.Forms.3.1.0.583944/build/netstandard2.0/Xamarin.Forms.targets(4,4): Error MSB4064: The "XamlFiles" parameter is not supported by the "XamlGTask" task. Verify the parameter exists on the task, and it is a settable public instance property. (MSB4064) (TestApp.iOS)

/Users/rehamathur/Projects/TestApp/packages/Xamarin.Forms.3.1.0.583944/build/netstandard2.0/Xamarin.Forms.targets(3,3): Error MSB4063: The "XamlGTask" task could not be initialized with its input parameters. (MSB4063) (TestApp.iOS)

like image 701
Reha Mathur Avatar asked Jul 10 '18 20:07

Reha Mathur


Video Answer


1 Answers

A pretty important addition from the answer of "StephaneDelcroix" there

  • make sure ALL of your project targets the same version of the XF nuget

I have reviewed my project and discovered that I have overlooked my PCL referencing old XF version. After upgrading and retargeting packages and following remaining steps the error was gone.

like image 99
Sergey Ivanov Avatar answered Oct 26 '22 09:10

Sergey Ivanov