Xamarin.Forms Projects
上QQ阅读APP看书,第一时间看更新

Examining the files

The template selected has now created four projects:

  • DoToo: This is a .NET Standard library targeting .NET Standard 2.0. It can be imported by any runtime that supports this version of .NET Standard.
  • DoToo.Android: This is an Android app for bootstrapping Xamarin.Forms on Android.
  • DoToo.iOS: This is an iOS app for bootstrapping Xamarin.Forms on iOS. 
  • DoToo.UWP: This is a Universal Windows Platform (UWP) app for bootstrapping Xamarin.Forms on UWP.

The three platform-specific libraries reference the .NET Standard library. Most of our code will be written in the .NET Standard library and only a small portion of platform-specific code will be added to each target platform.

The project should now look like as follows:

We will highlight a few important files in each project so that we can have a basic understanding of what they each are. We'll go through these project by project.