+

Search Tips   |   Advanced Search

Copy files of Native API applications for Windows Phone 8

To copy the files in the Native C# API application for Windows Phone 8 into the project that defines the native C# app for Windows Phone 8.

To use the MobileFirst Native C# API for Windows Phone 8 in the native C# app, copy the library and the client property file of the Native C# API application into the native C# app for Windows Phone 8 project.

In the Microsoft Visual Studio project for the native C# app for Windows Phone 8:

  1. Add the worklight-windowsphone8.dll file as a reference to the Visual Studio project.

  2. Add the Newtonsoft.Json.dll file as a reference to the Visual Studio Project.

  3. Copy the wlclient.properties client property file from the Native C# API application, and paste it into your Visual Studio project.

  4. Right-click the wlclient.properties file and select Properties.

  5. In the Properties window, set the Copy to Output Directory option to Copy always.

  6. Add the following capabilities to the WMAppManifest.xml file of the Windows Phone 8 Visual Studio project:

    1. ID_CAP_NETWORKING

    2. ID_CAP_IDENTITY_DEVICE

    3. ID_CAP_PUSH_NOTIFICATION, if the native app is used for push notifications.


Parent topic: Develop native C# applications for Windows Phone 8