The type or namespace name 'Windows' could not be found

和自甴很熟 提交于 2019-12-18 09:48:46

问题


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.

When I write using Windows.Storage

The type or namespace name 'Windows' could not be found -- This error message appears with red line under 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!


回答1:


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  

Hope that helps.



来源:https://stackoverflow.com/questions/44443661/the-type-or-namespace-name-windows-could-not-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!