简体   繁体   English

命名空间“Microsoft”中不存在类型或命名空间名称“设备”

[英]The type or namespace name 'Devices' does not exist in the namespace 'Microsoft'

I found similar problems but any solution didn't help.我发现了类似的问题,但任何解决方案都没有帮助。 I wanna declare private PhotoCamera photoCamera;我要声明私有 PhotoCamera photoCamera; with using Microsoft.Devices;使用 Microsoft.Devices; but it's problem here.但这里有问题。 I am creating Windows Phone 8.1 app using Visual Studio 2013. Am I should install some Reference ?我正在使用 Visual Studio 2013 创建 Windows Phone 8.1 应用程序。我应该安装一些 Reference 吗?

Thx in advance提前谢谢

In order to use Microsoft.Devices.PhotoCamera class, you need to reference Microsoft.Phone assembly.为了使用 Microsoft.Devices.PhotoCamera 类,您需要引用 Microsoft.Phone 程序集。 See https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.devices.photocamera(v=vs.105).aspx请参阅https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.devices.photocamera(v=vs.105).aspx

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“FileIO” - The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' 类型或名称空间名称“ DirectX”在名称空间“ Microsoft” Windows 8.1中不存在 - The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' Windows 8.1 命名空间“Microsoft”中不存在类型或命名空间名称“Bot”? - The type or namespace name 'Bot' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ FriendlyUrls”在名称空间“ Microsoft.AspNet”中不存在 - The type or namespace name 'FriendlyUrls' does not exist in the namespace 'Microsoft.AspNet' 命名空间“Microsoft”中不存在类型或命名空间名称“Reporting” - The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“TeamFoundation” - The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Azure” - The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“ServiceBus”? - The type or namespace name 'ServiceBus' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ Lync”在名称空间“ Microsoft”中不存在 - The type or namespace name 'Lync' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Practices” - The type or namespace name 'Practices' does not exist in the namespace 'Microsoft'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM