Slammerek
Slammerek

Reputation: 66

Unable to reference Microsoft.Device namespace

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.

Upvotes: 3

Views: 2718

Answers (2)

Nicholas Lu
Nicholas Lu

Reputation: 1893

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

Upvotes: 0

Slammerek
Slammerek

Reputation: 66

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.

Upvotes: 1

Related Questions