我正在尝试在 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/