LoginSignup
0
0

More than 5 years have passed since last update.

【Xamarin.Forms&Prism】ReactivePropertyの導入

Posted at

はじめに

Xamarin.Forms & PrismにReactivePropertyを追加する手順です。

環境

  • macOS 10.14 Mojave
  • Visual Studio Community 2017 for MAC(7.7.4)
  • Prism.Autofac.Forms(7.1.0.431)

ReactivePropertyの追加

PCLプロジェクトを右クリックして[追加]-[NuGetパッケージの追加(P)...]をクリックします。

スクリーンショット 2019-02-17 10.58.09.png

右上の検索キーワードに「reactive」と入力すると「ReactiveProperty」が出てくるので選択して「パッケージを追加」ボタンをクリックします。
【注意】
だいぶスクロールしてようやく出てきます。
検索キーワードに「reactiveproperty」といれてもヒットしません。

スクリーンショット 2019-01-27 18.21.54.png

追加されました。
スクリーンショット 2019-02-17 11.02.45.png

ビルド

まずはiOSプロジェクトから。

スクリーンショット 2019-02-17 11.08.47.png

成功しました。

次にAndroidプロジェクトです。

スクリーンショット 2019-02-17 11.08.47.png

ビルドエラーが出ましたー(泣

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1898,2): error XA2002: Can not resolve reference: System.Threading.Tasks.Extensions, referenced by System.Reactive. Please add a NuGet package or assembly reference for System.Threading.Tasks.Extensions, or remove the reference to System.Reactive.

対策はこちら。
https://qiita.com/ats_y/items/e7074dcbba036a6f6a72

0
0
0

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
0