内容
手順
Xamarin.Formsをインストールする
既に入ってる場合はバージョンが違う可能性があるので、一度アンインストールしバージョンを確認した上で再度インストールを行う
共有プロジェクトを右クリック->add
->add NuGet Packages...
Xamarin.Forms
で検索し、インストール。右下でバージョンが指定可能
エラーが出る
インストール完了後、buildを試してみるとまた以下のようなエラーが出る
/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)
調べてみた
ERROR WITH LATEST NUGET v2.5.0.77 "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded
OK
VisualStudioを再起動で解決
以上