3

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.

Grant Winney
  • 65,241
  • 13
  • 115
  • 165
Slammerek
  • 66
  • 1
  • 2
  • 9
  • I edited your question to remove the Thank you, see [here](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts) why we don't require that kind of stuff. – rene Apr 13 '14 at 11:37
  • Seems little odd, but ok. – Slammerek Apr 13 '14 at 11:44
  • 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 Apr 13 '14 at 12:11
  • I've reinstalled SDK 8.1 to SDK 8.0 and it keeps throwing an error. I have similiar problem as this guy here: http://social.msdn.microsoft.com/Forums/windowsapps/en-US/4c2fe60a-9299-4740-a568-3f1e3e0c828e/cannot-find-type-systemsystemexception-in-module-mscorlibdll but i'm just trying to use Microsoft.Devices namespace. – Slammerek Apr 13 '14 at 21:15

2 Answers2

1

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.

Slammerek
  • 66
  • 1
  • 2
  • 9
0

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

Nicholas Lu
  • 1,655
  • 15
  • 14