![](/img/trans.png)
[英]error CS0246: The type or namespace name 'Npgsql' could not be found (are you missing a using directive or an assembly reference?)
[英]Error CS0246 The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
我想運行Xamarin項目並進行所有更新。 當我運行項目時,出現以下錯誤
找不到類型或名稱空間名稱“ Windows”(是否缺少using指令或程序集引用?)
為線
using Windows.Storage;
using Windows.ApplicationModel.ExtendedExecution;
那是因為您缺少這些.dll
Windows博客上的專用博客文章中列出了建議的訪問UWP API的步驟。 基本上,您可以采用兩種方法:手動添加對UWP dll和winmd文件的引用,或使用UwpDesktop NuGet軟件包將自動為您解決此問題。
有關更多詳細信息,您可以檢查: 如何訪問Windows.Storage命名空間?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.