找不到类型或命名空间名称'Windows'



我正在尝试将FilePicker用于我的Hololens应用。但是我无法使用它,因为我的项目无法添加" Windows"参考。

当我写using Windows.Storage

The type or namespace name 'Windows' could not be found-此错误消息在Windows下方带有红线。

我尝试使用参考管理器添加参考,但是我找不到诸如汇编的Windows -Framework。

有人可以帮我吗?谢谢!

win 8.1 SDK缺少我的错误。

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

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  

希望会有所帮助。

最新更新