CommandBarButton这个类型我用vs2005建了个share-addin的工程,从网上看到的代码里面模仿写了句 private CommandBarButton mybutton; build的时候说找不到这个类型,是不是需要添加某个using ...,小弟没用过C#[解决办法]- -! 不存在CommandBarButton类型 你定义CommandBarButton 有什么意义