QuickStart Guide to build S60 apps in Visual Studio using Net60


Skip the Quick Start, and see Net60 running on device.                             

Pre-requisites before getting started are:

  1. Nokia PC Suite [26.2MB]
    Nokia PC Suite is used to install signed Symbian .SISX filesonto device.
  2. .NET Framework Version 2.0 (Redistributable) [22 MB]
  3. .NET Framework Version 1.1 (Redistributable) (Visual Studio 2005 users only) [23 MB]
  4. Windows Mobile 5.0 SDK for Smartphone (for CF 2.0 projects in Visual Studio 2005 ) [77MB]
  5. SDK for Windows Mobile 2003-based Smartphones(Visual Studio 2003 users only) [53MB]

 

Introduction

The Quick Start guide aims to introduce the process of creating S60 applications from a .NET Compact Framework application using Net60. A basic 'hello world' style .NET CF application will be used to demonstrate the process.

Please ensure that the Net60.exe is installed on your PC.

Quick Start Guide Contents

Step 1 - Open a Smart Device Project


.NET Compact Framework applications are created by selecting the Smart Device project option ( for Windows Mobile 5.0 Smartphone) in Visual Studio when creating new solutions.

The "Hello World" sample project, in the default Net60 install path
C:\Program Files\Red Five Labs\Net60\Sample Projects\Hello World, provides a quick way to get started with building a S60 application from a .NET CF app.


Building Hello World.exe

  1. Open Visual Studio
  2. Open the "Hello World.sln" file in the\Sample Projects\Hello World folder.
  3. Build the solution. The Hello World.exe output file will be in the \debug\bin folder.
 

Step 2 - Converting your .NET binary into a S60 installation package

 

Introduction to Genesis

The Hello World.exe application must be converted into a Hello World.SIS (Symbian Installation Source ) installer package for deployment to device. Genesis is a tool shipped with Net60 that generates .SIS packages from .exe files.

Genesis is a Visual Studio plug in, supporting VS 2005 & 2008 and its usage is described below. A command line version (genesis.exe) can be used for scripted builds.

 

Genesis in Visual Studio

  1. Add a new 'Genesis' project to the Hello World solution.

    File -> Add -> New Project
    Specify a name for the project to be created and click 'OK', as per below. eg. HelloWorld SIS Builder

  2. The Genesis Wizard will then assist you to complete the necessary configuration properties.

  3. The first page of the wizard requires a short name for the application (Max 8 chars), a UID (one is auto-generated for you), and the path to the .NET .exe to be added as a dependency to the Genesis Project. In this example, we have navigated to the Hello World.exe.





  4. Next is information pertaining to the SIS file which will be generated, namely the name and signed name. If the 'Self Sign' option is checked, you do not need to provide a Symbian Signed certificate which makes the evaluation process much easier. However, for development and distribution purposes, it is suggested that a Symbian Signed certificate is obtained.

    Note: In order to install 'Self Signed' applications, you must first configure your device App Manager, Software installation setting, to 'All' instead of 'Signed only'. The App Manager is normally found under 'Tools'. 

    Note 2: It is possible that a time difference exists between your PC and your device. This affects 'Self Signed' applications in that if the SIS is created at a time in the future, it will not install on device. The suggestion here is to set your phone's time setting to slighty ahead of your PC's time.  



  5. There is a wizard screen dedicated to selecting which security capabilities your application will require. For the purposes of the Hello World.exe example, it is not necessary to select any. Leave them all unchecked.


  6. Dependencies added to the Genesis project are embedded in the SIS file generated and are installed to device along with it. Most commonly the signed Net60.sisx in c:\Program Files\Red Five Labs\Net60 is added as a dependency as this ensures the Net60 framework is installed on the target device.

    Net60 is activated by means of including the net60.licence file as a dependency. Evaluators of Net60 would receive such a license file by email for a specific device IMEI.

  7. Finally, additional information such as the descriptive application name, application menu icon, vendor and version number can be supplied. The icon should be provided in a Tiny SVG 1.1 or 1.2 format.


  8. Once the wizard process is complete, the Hello World SIS Builder Project and its dependencies appear in the Visual Studio Solution Explorer as below: 

  9. Properties of the SIS Builder project may be configured at a later stage by right clicking the project and selecting 'Properties' as per below:



  10. The properties on the 'General' tab, as per the below example, can be edited or verified accordingly. A custom application UID may be obtained from Symbian Signed. The SVG file specifies the icon to be displayed on the S60 applications menu. An example SVG file can be found in each sample application project folder.


back to top

Step 3 - Building the SIS installer

Once the Genesis project is added and configured, it is easy to build the SIS which is output into a sub-folder.

Build the Hello World SIS Builder Genesis Project

  1. The "HelloWorld SIS Builder" project can be built by selecting the project, then right clicking and selecting 'Build'.


  2. The HelloWorld.SIS and the signed HelloWorld_signed.SISX output of the build process can be found in the project folder as per below:

back to top

Step 4 - Deploying your S60 application to device


The Genesis Visual Studio plug-in automates the Symbian Signing of the HelloWorld_signed.sisx file by making use of the 'Self Sign' feature. The 'Symbian Signing' properties may be edited later on the properties tab of the Hello World SIS Builder. Obtaining your own Symbian Signed .cer & .key files for  your device can be done here.

Deploying the HelloWorld_signed.sisx



  1. The HelloWorld_signed.sisx will be output to the same folder as the HelloWorld.sis as shown below:

  2. Deploy the application to device by double clicking "HelloWorld_signed.sisx" and accepting the Nokia Application Installer prompt below:

    (it is assumed the device is connected to the PC at this point, and that Nokia PC Suite is installed.

  3. Congratulations! Hello World will now be installed on your S60 device's application menu.
Net60 Launcher loads .NET .exe binaries directly

Red Five Labs provides the Net60 Launcher utility which will load .NET .exes directly when they are copied into a certain directory on the device. The Launcher is provided as a development tool only but it makes it convenient to load binaries quickly.

Red Five Labs Support

If you have any difficulties following this guide or need general support please email support@redfivelabs.com or alternatively visit our support forum.