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:
- Add the worklight-windowsphone8.dll file as a reference to the Visual Studio project.
- Add the Newtonsoft.Json.dll file as a reference to the Visual Studio Project.
- Copy the wlclient.properties client property file from the Native C# API application, and paste it into your Visual Studio project.
- Right-click the wlclient.properties file and select Properties.
- In the Properties window, set the Copy to Output Directory option to Copy always.
- Add the following capabilities to the WMAppManifest.xml file of the Windows Phone 8 Visual Studio project:
- ID_CAP_NETWORKING
- ID_CAP_IDENTITY_DEVICE
- ID_CAP_PUSH_NOTIFICATION, if the native app is used for push notifications.
Parent topic: Develop native C# applications for Windows Phone 8