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?
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;