c# - visual studio express 2012 中的 PowerPacks 命名空间错误

标签 c# .net visual-studio-2012 windows-phone winapi

我正在尝试在 Visual Studio 2012 中构建项目,但出现此错误

The type or namespace name 'PowerPacks' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?)    Error   7   The type or namespace name 'PowerPacks' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?)    

我已经添加了 PowerPacks 的引用,但仍然出现此错误。 我该如何克服这个问题。

最佳答案

详细说明,来 self 的评论:

通常出现这种情况,并且无法通过添加引用来解决时,说明您使用的项目类型与引用的类型不兼容。 “.NET 4 客户端配置文件”与“.NET 4 配置文件”对比让我很反感。

根据您的 windows-phone 标记,我怀疑您遇到的问题是 Microsoft.VisualBasic.PowerPacks 库是基于 Windows.Form,手机上没有。因此,任何需要它的东西,比如 PowerPacks,都将与手机项目不兼容。

我无法为您指出适用于手机的等效库,但如果手机库中已经内置了您想要的功能,我不会感到惊讶。

关于c# - visual studio express 2012 中的 PowerPacks 命名空间错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14284431/

相关文章:

.net - 如何在Visual Studio 2008的WATCH列表中保存/打印值?

sql - VS2012 部署后脚本引用了其他几个脚本

c# - 可以从 WebClient 继承而我的代码不是 "design time component"吗?

c# - Oxyplot:蜡烛重叠每根蜡烛

c# - 如何使用 System.IO.Pipelines 包创建响应 TCP 监听器?

c# - 在主线程上执行异步任务的最佳方式

c - 结构中的结构导致问题

c# - 当我实现使用 HandlerAttribute 的接口(interface)时,是否可以拦截它?

c# - 我创建了一个空项目 (MVC),但现在想要将用户角色和配置文件表添加到我的数据库中

c# - 重试失败的 System.Data.SqlClient 操作的干净方法