Old project with Visual Studio for Mac with MSB4064 and MSB4063 build errors

  • 505 Views
  • Last Post 19 June 2017
  • Topic Is Solved
erportico posted this 19 June 2017

Hi guys,
I've created and am still developing some project on my Mac from year ago. They was working fine. From when I installed a couple of weeks ago Visual Studio for Mac, I'm receiving some Debug errors like:

/Users/enricorossini/Projects/myProject/packages/Xamarin.Forms.2.3.4.247/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.targets(4,4): Error MSB4064: The "DebugType" parameter is not supported by the "XamlCTask" task. Verify the parameter exists on the task, and it is a settable public instance property. (MSB4064)

/Users/enricorossini/Projects/myProject/packages/Xamarin.Forms.2.3.4.247/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.targets(3,3): Error MSB4063: The "XamlCTask" task could not be initialized with its input parameters. (MSB4063)

I tried to delete bin and obj folders but the errors are still there.

admin posted this 19 June 2017

It is a bit tricky but you can resolve your problem to delete DebugType = "$(DebugType)" from Xamarin.Forms.targets.

For that, open in your folder solution this folder:

packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets

Then open the file called Xamarin.Forms.targets and (usually at the end of the file) you can find the line to remove.

Remove line from Xamarin.Forms.targets

Close