![](/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.