问题描述
我正在构建Windows服务,并遵循,但我停留在创建安装程序下的第3步。我找不到它所指的添加安装程序链接。我已经点击了所有地方,包括严格按照其说明进行操作,但似乎找不到。 Google上的一些人也遇到了同样的问题,但从未找到解决方案(除了添加ServiceInstaller对象并手动配置之外)。
I'm building a Windows service and following this MSDN article, but I'm stuck on step 3 under "Create an installer". I can't find the "Add Installer" link it's referring to. I've clicked everywhere, including following the instructions it gives exactly, but I can't seem to find it. A few people on Google have had the same problem, but never found a solution (other than adding the ServiceInstaller object and configuring it manually).
其他任何人都有这个问题并找到原因?我正在使用VS2008并以.Net 2.0为目标。
Has anybody else had this problem and found a reason? I'm using VS2008 and targeting .Net 2.0 if it matters.
推荐答案
他们正在谈论的灰色区域是在属性面板的属性(不是拼写错误)中单击命令面板。它不是很有用,所以您可能已将其关闭。
The "Gray area" they're talking about is the Commands panel from Properties of the Properties panel (not a typo). It is not very useful so you have probably shut it off, I did.
您可以通过右键单击属性面板并选择命令来重新启用它。 ,或通过右键单击服务设计视图(带有向组件添加组件...的大棕褐色窗口)并选择添加安装程序,直接添加一个Installer项目。
You can either re-enable it by right-clicking the Properties panel and selecting "Commands", or add an Installer project directly by right-clicking the Service design view (the big tan window with "To add components to your class...") and selecting "Add Installer".
这篇关于Visual Studio缺少“添加安装程序”服务项目中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!