在Visual Studio 2010的调试模式下运行时,Excel不会打开/启动VSTO AddIn

在Visual Studio 2010的调试模式下运行时,Excel不会打开/启动VSTO AddIn

问题描述:

我以前安装了VS11测试版,并且在Visual Studio 2010实例中有一些问题,您可以在这里看到如何解决这些问题: Excel AddIn点击一次部署问题

I had previously installed the VS11 beta, and had some issues with my Visual Studio 2010 instance, which you can see here how they were resolved: Excel AddIn Click Once deployment issue.

现在我有一个代码库来编译/构建一个vsto ,它在Excel 2010中安装得很好并且运行正常。但是,当我从Excel中删除已安装的版本,并尝试通过Visual Studio 2010直接运行时,在调试配置模式下运行时,AddIn不会被加载到Excel中配置模式可以正常工作。任何关于为什么会发生这样的想法?我已经尝试通过Com AddIns重新启用它,还有一些其他的东西没有运气。

Now I have a code base which compiles/builds a vsto, which installs fine and runs fine in Excel 2010. However, when I remove the installed version from Excel, and try to run it directly through Visual Studio 2010, the AddIn does not get loaded into Excel when running in debug configuration mode, in release configuration mode it works fine. Any ideas on why this might be occurring? I've tried re-enabling it through Com AddIns, and a few other things with no luck.

我发现这个问题不是让我以Debug配置模式运行我的项目,尽管它在Release模式下工作。在某些时候,AddIn,很难被禁用(不知道这是否是使用的术语)。在这一点上,尝试从Excel内重新启用不会做任何事情。在注册表中,有一个文件夹禁用了AddIns。我从这个文件夹中删除了所有的键,除了(默认),现在我的AddIn在调试模式下从Visual Studio 2010启动时起作用。

I've found the issue which was not letting me run my project in 'Debug' configuration mode, though it worked in 'Release' mode. At some point, the AddIn, got hard-disabled (not sure if that's the term to use). At that point, trying to re-enable from within Excel doesn't do anything. Within the registry, there is a folder where disabled AddIns are flagged. I deleted all of the keys from this folder except for "(Default)" and now my AddIn works when launching from Visual Studio 2010 in 'Debug' mode.

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Resiliency\DisabledItems