LoginSignup
0

More than 5 years have passed since last update.

The "XamlCTask" task failed unexpectedly.

Posted at

内容

以下のようなエラーが出た時の対処法
スクリーンショット 2018-02-15 11.40.06.png

手順

Xamarin.Formsをインストールする

既に入ってる場合はバージョンが違う可能性があるので、一度アンインストールしバージョンを確認した上で再度インストールを行う

共有プロジェクトを右クリック->add->add NuGet Packages...
スクリーンショット 2018-02-15 11.40.27.png

Xamarin.Formsで検索し、インストール。右下でバージョンが指定可能
スクリーンショット 2018-02-15 11.40.48.png

エラーが出る

インストール完了後、buildを試してみるとまた以下のようなエラーが出る
スクリーンショット 2018-02-15 11.41.44.png

/Users/frog/Downloads/VoiceRecognitionSample-master/packages/Xamarin.Forms.2.5.0.122203/build/portable-win+net45+wp80+win81+wpa81/Xamarin.Forms.targets(3,3): Error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly /Users/frog/Downloads/VoiceRecognitionSample-master/packages/Xamarin.Forms.2.5.0.122203/build/portable-win+net45+wp80+win81+wpa81/Xamarin.Forms.Build.Tasks.dll.  Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. (MSB4062) (VoiceRecognitionSample)

調べてみた
スクリーンショット 2018-02-15 11.56.29.png
ERROR WITH LATEST NUGET v2.5.0.77 "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded

OK

VisualStudioを再起動で解決

以上

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0