在 Visual Studio 中构建 VSTO AddIn 项目时 dll 和其他文件的位置 [英] Location of dlls and other files when a VSTO AddIn project is built in Visual Studio

查看:20
本文介绍了在 Visual Studio 中构建 VSTO AddIn 项目时 dll 和其他文件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如本MSDN教程中所述,当您运行/在 Visual Studio 中构建 MS Word VSTO 项目,它会在 Word 应用程序中创建您的自定义办公 Word 插件.您可以稍后使用 VS 删除该插件,如下所示:

As explained in this MSDN tutorial, when you run/build an MS Word VSTO project in Visual Studio, it creates your custom office Word AddIn in Word application. You can later remove that AddIn using VS as follows:

清理项目(引自上述 MSDN 教程的最后一节)

Cleaning up the Project (quoted from the last section of the above MSDN Tutorial)

When you finish developing a project, remove the VSTO Add-in assembly, registry entries, and security settings from your development computer. Otherwise, the VSTO Add-in will continue to run every time that you open Word on your development computer.
To clean up the completed project on your development computer
In Visual Studio, on the Build menu, click Clean Solution.

我的问题:创建自定义加载项时(如上述 MSDN 教程中所述),加载项项目中相应的 dll 和其他相关文件(数据文件等)在哪里部署?>

My Question: When custom AddIn is created (as explained in the above MSDN tutorial) where are the corresponding dlls, and other related files (data files etc) from AddIn project get deployed?

推荐答案

在 Visual Studio 中构建项目并运行"加载项、Visual Studio 或 ClickOnce 时,部署会将已安装的加载项存储在ClickOnce 缓存.这句话试图提醒您,当您想要专门运行生产"位时,您需要清除此包含开发人员部署的缓存".

While building your project in Visual Studio and 'running' the Add-in, Visual Studio, or ClickOnce I should say, deployment stores the installed Add-in in a ClickOnce cache. The quote tries to remind you that you need to clear this 'cache' containing your developer deployments when you want to specifically run your 'production' bits.

要清理它,您可以 - 在将最终构建的生产部署位放在一边之后 - 使用 Visual Studio 菜单清理您的项目.这也将清除已部署的开发人员缓存(您会注意到外接程序条目从您定位的 Office 应用程序中消失了)

To clean this, you can -after setting aside your final built production deployment bits- clean your project using the Visual Studio menu. This will also clear the deployed developer cache (and you will notice that the Add-in entry disappears from your Office application that you targeted)

上下文就这么多,缓存的 ClickOnce 文件可以在以下文件夹中找到:C:\Users\\AppData\Local\Apps\2.0

So much for the context, the cached ClickOnce files can be found under the folder: C:\Users\\AppData\Local\Apps\2.0

有些目录你可能会觉得是随机命名的,但那是因为它们是由系统生成的.最好不要手动清理这些,而是​​使用 Visual Studio 中的清理选项或使用称为 Mage 的工具(请参阅线程:https://social.msdn.microsoft.com/Forums/en-US/de8e4a91-d60d-489c-b64b-59440a0293ee/mage-cc?forum=vsto)

There will be some directories with what you might feel are named randomly, but that is because they are generated by the system. It is best not to clean these manually, but either use the Clean option in Visual Studio or use a tool called Mage (see thread: https://social.msdn.microsoft.com/Forums/en-US/de8e4a91-d60d-489c-b64b-59440a0293ee/mage-cc?forum=vsto)

这篇关于在 Visual Studio 中构建 VSTO AddIn 项目时 dll 和其他文件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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