简体   繁体   English

VSTO 自定义功能区未显示

[英]VSTO Custom Ribbon Not Showing

I'm following this tutorial: https://docs.microsoft.com/en-us/visualstudio/vsto/ribbon-designer?view=vs-2019#DesigningRibbonLayout我正在关注本教程: https : //docs.microsoft.com/en-us/visualstudio/vsto/ribbon-designer?view=vs-2019#DesigningRibbonLayout

But no matter what I do my custom tab just doesn't show up.但无论我做什么,我的自定义选项卡都没有出现。 Here's a list of things I've tried:这是我尝试过的事情的列表:

  • Checking that the addin is enabled检查插件是否已启用
  • Ending orphan processes结束孤立进程
  • Restarting Outlook重新启动 Outlook
  • Rebooting my PC重新启动我的电脑
  • Adding a button to the default Addin tab (This did not show either)向默认的 Addin 选项卡添加一个按钮(这也没有显示)

Anyone got any ideas?有人有任何想法吗?

I'm using Visual Studio 2019 with target .NET framework 4.7.2, and trying to make an addin for Outlook 365 if that helps我正在将 Visual Studio 2019 与目标 .NET 框架 4.7.2 一起使用,并尝试为 Outlook 365 制作插件(如果有帮助)

Ok so I've figured it out.好的,所以我想通了。 For anyone else running into this problem you need to change the RibbonType property to "Microsoft.Outlook.Explorer".对于遇到此问题的任何其他人,您需要将 RibbonType 属性更改为“Microsoft.Outlook.Explorer”。 I was stuck because I couldn't find the property - to make it appear, click on the white space above or around the tab and not the tab itself.我被卡住了,因为我找不到该属性 - 要使其出现,请单击选项卡上方或周围的空白区域,而不是选项卡本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM