Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
715 views
in Technique[技术] by (71.8m points)

c# - The type or namespace name 'Windows' could not be found

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...