Adding libraries to the project

Before your start to use the functionality provided by the Lumia Imaging SDK, you must add the SDK libraries to the project by installing the SDK using the Visual Studio NuGet package manager.

Installing the SDK and including the libraries in a project using NuGet

In Visual Studio, update your NuGet to the latest version using the Tools > Extensions and Updates dialog, as shown here.


After NuGet has been updated, right-click your project's References folder and select Manage NuGet Packages.


In the search box, type "Lumia Imaging SDK". The SDK entry will be displayed. Click the Install button associated with the entry.

NuGet will install the libraries in the right directories, but you'll have to perform a few steps yourself to complete the installation.

The Lumia Imaging SDK does not support the "Any CPU" build configurations. To make sure that you will not attempt to use them, we recommend that you remove the "Any CPU" configuration from the project, leaving only "ARM", "X64", and "X86". You can do this by opening Configuration Manager from the Build menu.

In Configuration Manager, from the Active solution platforms list, select <Edit...>.


In the Edit Solution Platforms dialog, select Any CPU and click Remove. Make sure that only ARM, x64, and x86 remain in the list of solution platforms.


It is a known issue that in some cases the project's References section does not automatically update to reflect the newly added libraries. If this happens, save the project, close the solution, and then reopen it. All added library files will appear in References.


The project can now be properly compiled and deployed both on the emulator and on the phone.