O'Reilly logo

Xamarin Essentials by Mark Reynolds

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Old school source file linking

File linking refers to a technique where source code files are linked or referenced by a Xamarin project and are compiled when a build is run on the project along with the rest of the source code in the project. When using file linking, a separate DLL is not created for the files you are sharing, rather the code is compiled into the same DLL produced for the project that the file is linked to; in our case, either NationalParks.iOS.dll or NationalParks.Droid.dll.

Creating a shared library project

We will start by creating a new Library project to house the reusable code. To create a Library project, perform the following steps:

  1. Add a new library project with the name NationalParks.Data to the NationalParks solution. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required