Building a BookLibrary app using the Razor templating engine
In this section, we will take a look at how to create a Razor templating solution. We will begin by developing the basic structure for our application, as well as creating a BookItem
data model and a BookDatabase
class, designing the Razor template pages user interface files using HTML5, and implementing the necessary class instance methods within the WebViewController
class.
Before we can proceed, we need to create our BookLibrary
project for the iOS platform. It is very simple to create this using Visual Studio for Mac. Simply go through the following steps:
- Launch the
Visual Studio for Mac
application. - Next, choose the
New Solution…
option, or, alternatively, chooseFile | New | Solution...
or simply press Shift + Command + N. - Then, choose the
WebView App
option, which is located under theiOS | App
section, as shown in the following screenshot. Ensure that you have selected C# as the programming language to use:

Creating a new...