[英]The type or namespace name 'Windows' could not be found
我正在嘗試為我的 hololens 應用程序使用文件選擇器。 但是我無法使用它,因為我的項目無法添加“windows”引用。
當我using Windows.Storage
編寫時
The type or namespace name 'Windows' could not be found
——此錯誤消息在 Windows 下顯示為紅線。
我嘗試使用引用管理器添加引用,但在程序集 - 框架中找不到諸如 Windows 之類的任何內容。
任何人都可以幫助我嗎? 謝謝!
我缺少 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
希望有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.