QR code reader for Windows Phone

c#, visual-studio-2013, windows-phone, windows-phone-8

Solution

Make sure you added using :

using Microsoft.Devices;

because `PhotoCamera` class is available from `Microsoft.Devices` namespace. Otherwise you'll need to use fully-qualified class name :

private Microsoft.Devices.PhotoCamera camera;

Problem

I'm working on a Windows Phone app and I need a simple QR code reader. I'm following a tutorial. I did everything, and now I must add ``` private PhotoCamera camera; ``` But there is always this error: ``` The type or namespace name 'PhotoCamera' could not be found (are you missing a using directive or an assembly reference?) ``` Why am I getting this error?

Original source