使用VSTO 2007部署托管自动化加载项时出现问题 [英] Problem deploying managed automation add-ins with VSTO 2007

查看:109
本文介绍了使用VSTO 2007部署托管自动化加载项时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Carter和Lippert"用于Office 2007的Visual Studio工具"。书。在页面107的底部,有"部署托管自动化加载项"的说明。当我在解决方案资源管理器中右键单击我的解决方案,然后选择添加时,没有"添加新项目"选择。

我的装置有什么缺失吗?通过使用Excel.exe作为外部程序,它在我的调试器中工作正常,但我希望能够将其部署到其他机器。

谢谢!

解决方案

嗨Mary,

如果您希望能够将其部署到其他计算机,请按照"部署托管自动化加载项"的说明进行操作。首先,请确保您已在自动化服务器列表中看到 AutomationAddin.MyFunctions ,如图3-8所示。
以下是部署步骤:1。右键单击 您的解决方案 (名称为"Solution'AutomationAddin'" not"; "解决方案资源管理器"中的"AutomationAddin") ,然后从"添加"菜单中选择"新建项目"。
2。在"添加新项目"对话框中,从"其他项目类型"中选择"设置项目" - >"项目类型"树中的"设置和部署",输入名称为 Setup1 (默认),然后单击"确定"。在解决方案资源管理器中右键单击添加的安装项目(即设置),然后从"添加"菜单中选择"项目输出"。
4。在"添加项目输出组"对话框中,选择 AutomationAddin 项目,然后选择主输出,单击"确定"。通过右键单击 Setup1 并选择Build来构建安装项目。

现在您可以将此自定义安装到其他机器上。

如果您有任何其他问题,请告诉我们。

最好的问候,
Bessie



I'm using the Carter and Lippert "Visual Studio Tools for Office 2007" book.  On the bottom of page 107, there are instructions for "Deploying Managed Automation Add-Ins".  When I right-click my solution in Solution Explorer, and select Add, there is no "Add New Project" selection. 

Is there something missing from my installation?  It works fine in my debugger by using Excel.exe as the external program, but I want to be able to deploy it to other machines.

Thanks!

解决方案

Hi Mary,

If you want to be able to deploy it to other machines, just follow the instructions of "Deploying Managed Automation Add-ins". First, please ensure that you have seen the AutomationAddin.MyFunctions in the list of automation servers, as shown in Figure 3-8 in the book.
Here are the steps about deployment:
1. Right-click your solution (name is "Solution 'AutomationAddin' " not "AutomationAddin") in Solution Explorer and choose New Porject from the Add menu.
2. In the Add New Project dialog, choose Setup Project from Other Project Types->Setup and Deployment in the Project Types tree, input Name as Setup1(default), and click Ok.
3. Right-click the added setup project(i.e. Setup) in Solution Explorer and choose Project Output from the Add menu.
4. In the Add Project Output Group dialog box, choose the AutomationAddin project and select Primary Output, and Click Ok.
5. Build the setup project by right-clicking the Setup1 and choosing Build.

Now you can install this customization to other machines.

If you have any further questions, please let us know.

Best regards,
Bessie


这篇关于使用VSTO 2007部署托管自动化加载项时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆