惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
大猫的无限游戏
大猫的无限游戏
The GitHub Blog
The GitHub Blog
腾讯CDC
L
LangChain Blog
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
量子位
Apple Machine Learning Research
Apple Machine Learning Research
Cloudbric
Cloudbric
B
Blog RSS Feed
B
Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Vercel News
Vercel News
S
Schneier on Security
Project Zero
Project Zero
宝玉的分享
宝玉的分享
美团技术团队
MyScale Blog
MyScale Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy
T
Threatpost
A
Arctic Wolf
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
爱范儿
爱范儿
Recorded Future
Recorded Future
C
CERT Recently Published Vulnerability Notes
T
Threat Research - Cisco Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
SecWiki News
SecWiki News
H
Hacker News: Front Page
AWS News Blog
AWS News Blog
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tor Project blog
C
Check Point Blog
L
Lohrmann on Cybersecurity
F
Full Disclosure
TaoSecurity Blog
TaoSecurity Blog
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
The Last Watchdog
The Last Watchdog
Martin Fowler
Martin Fowler

博客园 - ~在思考中沉淀~

VS2005中通过code snippet定制类模板 寻找合租的朋友;-) [晴,天气不错]咖啡罐上的灰尘 辛苦的周末~ 结合Web Services和Windows Services定期执行Asp.Net代码 可怕的春运,烦人的火车票! RSS Reader\Workflow Lite\User Manager for Sharepoint以及一点想法 - ~在思考中沉淀~ 创建自定义的Visual Studio项模板 微软推出Microsoft Exchange Server Best Practices Analyzer Tool 有要Gmail的吗?;)[已结束!] 分析更新LastActivity的过程-补Who is online 科技对生活的影响 WhoIsOnline ;) - 解读CNForum源码中在线用户统计 开始GMail之旅 .Net和Windows应用程序调试[更新至2004-12-29] 学习SQL Server全文索引 惊喜->监护期 悲哀的晚上 my代码分析器
创建VS.Net外接程序时遇到的问题
~在思考中沉淀~ · 2005-01-01 · via 博客园 - ~在思考中沉淀~

今天是2005年的第一天,首先祝大家工作顺利,心想事成~!
下面进入正题:
假期在家有点闲着无聊,所以随便写了些代码。但是遇到了一个奇怪的问题:
在使用VS的外接程序向导创建一个外接程序项目后,检查Connect.cs文件中OnConnection方法中有如下一些代码:


Command command = commands.AddNamedCommand(addInInstance, "IISMgrAddin", "IISMgrAddin", "Executes the command for MyAddin1", true, 59, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled);
CommandBar commandBar = (CommandBar)commandBars["Tools"];
CommandBarControl commandBarControl = command.AddControl(commandBar, 1);


按说有这些代码,在安装完成后应该就可以在VS.Net的“工具”菜单项下应该有一个名为“IISMgrAddin”的菜单。
但是重新开启一个VS.Net后奇怪的事情发生了,期望的“IISMgrAddin”并没有出现!
这究竟是怎么回事呢?找了些资料后觉得代码并没有问题啊(事实上我没有增加任何代码,全部是向导自动创建的)!

在这个问题上纠缠了一个小时后,决定重新创建一个外接项目试试。当向导进行到下面这步时:
 
会不会问题就出在这里的选择上呢?试着不选择我要的“Micorosft VSMacros IDE”,然后继续完成项目创建、打包、安装、重启VS。
OK,相应的菜单项终于如愿以偿的出现了。

原来问题就出现在这里啊!
但是为什么会这样呢?尝试着分别创建两个“Micorosft VSMacros IDE”选择情况不同的项目,比对了半天也没有发现区别。

不知道有哪位高手能告诉我这是为什么?谢谢!