3

我正在尝试在 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 的参考,但仍然出现此错误。我该如何克服这一点。

4

1 回答 1

2

根据我的评论详细说明:

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

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

我无法为您指出手机的等效库,但如果您希望手机库中已经有您想要的功能,我不会感到惊讶。

于 2013-01-11T18:58:22.790 回答