vb.net 2010 年的 Visual Basic PowerPack 在 2013 年不起作用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21274276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Basic PowerPacks from 2010 not working in 2013?
提问by numbermaniac
I have been using Visual Studio 2010 on my old computer, and I have used PowerPack shapes in my designer. In VS2013, I have installed the PowerPacks but it keeps complaining that it cannot find anything related.
我一直在旧计算机上使用 Visual Studio 2010,并且在我的设计器中使用了 PowerPack 形状。在 VS2013 中,我已经安装了 PowerPacks,但它一直抱怨找不到任何相关的东西。
Type 'Microsoft.VisualBasic.PowerPacks.ShapeContainer' is not defined.
Type 'Microsoft.VisualBasic.PowerPacks.ShapeContainer' is not defined.
This is happening for OvalShape and a few others, not just this. Any help appreciated :)
这发生在 OvalShape 和其他一些人身上,而不仅仅是这个。任何帮助表示赞赏:)
回答by Mark Hall
It looks like your program is not able to find the reference to your VisualBasic PowerPack extension. Try right clicking on References select add reference then goto Assemblys --> Extensions scroll down and find the Microsoft.VisualBasic.PowerPacks.VS
Reference remove the checkmark there and select the Microsoft.VisualBasic.PowerPacks
reference and click ok, that should fix it for you. You probably will also need to remove the reference that has the yellow exclamation mark.
您的程序似乎无法找到对您的 VisualBasic PowerPack 扩展的引用。尝试右键单击“引用”选择“添加引用”,然后转到“程序集”->“扩展”向下滚动并找到“Microsoft.VisualBasic.PowerPacks.VS
引用”,然后删除其中的复选标记并选择Microsoft.VisualBasic.PowerPacks
引用并单击“确定”,这应该会为您修复。您可能还需要删除带有黄色感叹号的引用。
It looks like the extension's name has changed from Microsoft.VisualBasic.PowerPacks.VS
to Microsoft.VisualBasic.PowerPacks
. Since I have both VS2010 and VS2013 on my laptop I show both of them.
扩展名似乎已从 更改Microsoft.VisualBasic.PowerPacks.VS
为Microsoft.VisualBasic.PowerPacks
。由于我的笔记本电脑上同时安装了 VS2010 和 VS2013,所以我同时展示了它们。