问题描述
嗨
我想在VS2012中创建两个vspackage来定位.net 4和3.5,当我将目标更改为.net 4然后编译项目时,我得到的错误很少:
HiI want to create two vspackage in VS2012 to target .net 4 and 3.5, when I change the target to .net 4 and then compiling the project , I get few errors like :
Error 1 The type or namespace name 'PackageRegistrationAttribute' could not be found (are you missing a using directive or an assembly reference?) VSPackage1Package.cs 24 6 VsPackageSetup
我认为问题是因为必须为.net 4和3.5添加的引用如:
Microsoft.VisualStudio。 shell.10.0
Microsoft.VisualStudio.shell.9.0
但它们不在可访问的引用列表中。
我没有在安装程序列表中看到.net framework 3.5 ms在控制面板中,当我下载安装时,它不会开始安装,甚至不会出错和退出。
我想做的是能够在任何.net和任何Visual工作室上安装我的控件。
任何建议都将受到高度赞赏。
I think the problem is because of the references that must be added for .net 4 and 3.5 like:
Microsoft.VisualStudio.shell.10.0
Microsoft.VisualStudio.shell.9.0
but they are not in the list of accessible references.
I don't see .net framework 3.5 in the list of installed programs in control panel, when I download it to install, it does not start to install and even doesn't give error and exits.
What I want to do is have the ability to install my control on any .net and for any Visual studio.
Any recommendation would be highly appreciated.
推荐答案
这篇关于从vs2012引用shell.10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!