Copy files of native API applications for Windows 8
To copy the files in the native API application for Windows 8 into the project that defines the native app for Windows 8.
To use the MobileFirst native API for Windows 8 in your native app, copy the library and the client property file of the native API application into the native app for Windows 8 project.
In the Microsoft Visual Studio project for the native C# app for Windows 8:
- Locate the worklight-windows8.dll file in the native API project and add it as a reference to the Visual Studio project. Similarly, add the Newtonsoft.Json.dll as a reference to the Visual Studio Project. If we are copying these files from another folder or computer, then ensure that you copy the worklight-windows8.pri file and place it in the same folder as the worklight-windows8.dll.
- Copy the wlclient.properties client property file from the native API application into the Visual Studio project. Right-click the wlclient.properties file and click Properties. In the Properties window, set the Copy to Output Directory option to Copy always.
- In the Visual Studio IDE, open the Package.appxmanifest file of the Windows 8 project. Navigate to the Capabilities tab and select the following capabilities:
- Internet (Client & Server)
- Private Networks (Client & Server)
Parent topic: Develop native C# applications for Windows 8