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 latest version using the Tools > Extensions and Updates dialog, as shown here.

Dn890712.updating_nuget(en-us,WIN.10).png

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

Dn890712.manage_nuget_packages_1(en-us,WIN.10).png

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" and "x64" build configurations. To make sure that you will not attempt to use them, we recommend that you remove the "Any CPU" and/or "x64" configuration from the project, leaving only "ARM" 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...>.

Dn890712.configuration_manager(en-us,WIN.10).png

In the Edit Solution Platforms dialog, select Any CPU and click Remove. Repeat for x64 if your project has this configuration defined. Make sure that only ARM and x86 remain in the list of solution platforms.

Dn890712.edit_solution_platforms(en-us,WIN.10).png

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.

Dn890712.solution_explorer(en-us,WIN.10).png

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

Show: