LoginSignup
0
1

More than 5 years have passed since last update.

電気系プログラミングガチ素人が、Xamarinでアプリ開発する話 5日目 ~iOSとAndroidProject,SAPとPCL,~

Posted at

それぞれのデリゲートの場所

iOS: ~.iOS -> AppDeligate.cs
Android: ~.Android -> MainActivity.cs

でそれぞれアクセスが可能。

SAP?PCL?

SAP:Shared Asset Project
PCL:Portable Class Library

違いは何よ?

SAPファイルはApp.csのみの構成(?)と書かれたましたが、見た所マスターのパッケージが少し少なくなってました。
また、以下の記述がPCLの特徴のようです。

all the common code is bundled into a dynamic-link li- brary that each application project references and binds to at run time.

全てのコードは一度、Dllの形式に変換されて、実行時に関連づけられて実行される。

With the SAP approach, the common code files are effectively included with each of the five application projects at build time. By default, the SAP has only a single file named App.cs, but effectively it’s as if this HelloSap project did not exist and instead there were five different copies of this file in the five application projects.

????
一個ずつ和訳します。

SAPでは、5つのアプリケーションのビルド環境に応じて、適切にインクルードされる。デフォルトならば、App.csでネーミングされるものの、5つのアプリケーションで適切にそれぞれ変換される。

つまり、この二つの違いは、一度変換して、実行時にアプリケーションとしてビルドして行く方法と、それぞれのビルド環境にあわせて、変換して行くタイプという違いのようです。

今回はここまで・・・

今回は、ちょっと読み解くのが難しかったです。これから先はちょっと長丁場になりそうなので、
ここで一旦切ります!
ごめんなさい!

0
1
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
1