It’s right there. Just click on References under the project in Solution Explorer. Right-click and add reference->.NET->System.Device. Well do’h.
start of those adventures again.
why is my “start debugging” item disabled in visual studio 2010? because i started with a background agent project, and added a windows phone application project. you can only debug if your “solution” is has the application set as the startup project. even if doing “deploy” solution actual deployes the application..
and to print something you need to use the System.Diagnostics.Debug.WriteLine API. And it only works in debug mode. With all the extra crap that comes with it..