I'm trying to develop a simple widget using the visual studio add-in.
My widget needs to connect to the contacts list, and I'm trying to this using
var so = device.getServiceObject("Service.Contact", "IDataSource");
I keep getting an annoying exception saying that
"device is not defined" although the device.js is included in the solution.
Thanks in advance,