3
votes

I'm unable to reference the Microsoft.Devices namespace to use this class to vibrate.

I can manually reference it from assembly Microsoft.Phone.dll, found in:

c:\Program Files (x86)\Microsoft SDKs\WindowsPhone\v8.1\Tools\AppDeploy\MdilXapCompilev8.0\Framework\Microsoft.Phone.dll

It worked, but when I try to compile it gives me an error:

Cannot find type System.SystemException in module mscorlib.dll.

It's a Blank Windows Phone Project from VS 2013. I've tried reinstalling the SDK but it had no effect.

2
I edited your question to remove the Thank you, see here why we don't require that kind of stuff. - rene
Seems little odd, but ok. - Slammerek
You cannot reference that assembly, very important that projects only use reference assemblies, not implementation assemblies. The Phone 8.1 SDK is in beta right now, best to record your problem at connect.microsoft.com - Hans Passant
Oh, didn't know that. Thank you :) - Slammerek
I've reinstalled SDK 8.1 to SDK 8.0 and it keeps throwing an error. I have similiar problem as this guy here: social.msdn.microsoft.com/Forums/windowsapps/en-US/… but i'm just trying to use Microsoft.Devices namespace. - Slammerek

2 Answers

1
votes

I've finally figured it out.

SDK 8.1 in RC 2 update for VS 2013 is not removable so you can't create SDK 8.0 project. Reinstalling VS 2013 did the trick.

0
votes

This one can solve your problem without need remove SDK 8.1 and degrade to 8.0: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn611853.aspx