找不到类型或名称空间名称"Windows" [英] The type or namespace name 'Windows' could not be found

查看:122
本文介绍了找不到类型或名称空间名称"Windows"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的hololens应用程序使用filepicker.但是我无法使用它,因为我的项目无法添加"Windows"参考.

I am trying to use filepicker for my hololens app. But I can't use it because my project can't add the 'windows' reference.

当我写using Windows.Storage

The type or namespace name 'Windows' could not be found-Windows下此错误消息以红线显示.

The type or namespace name 'Windows' could not be found -- This error message appears with red line under Windows.

我尝试使用引用管理器添加引用,但是在装配体-框架"中找不到Windows之类的东西.

I tried to add reference with reference manager, but I can't find anything such as Windows at the Assemblies - Framework.

有人可以帮我吗?谢谢!

Can anyone help me on this? Thanks!

推荐答案

我缺少Win 8.1 SDK,因此出现了错误.

Win 8.1 SDK was missing for me, so got the error.

以下步骤解决了我的问题:

Below steps resolved my issue:

Download and Start the "Visual Studio installer"  
  Click on the "Modify" button  
    Click "Individual components" tab  
    Under "SDKs, libraries and frameworks" heading  
      Select "Windows 8.1 SDK" (replace 8.1 with your Windows version.)  
      Click "Modify" to install  

希望有帮助.

这篇关于找不到类型或名称空间名称"Windows"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆