【问题标题】:Location of dlls and other files when a VSTO AddIn project is built in Visual Studio在 Visual Studio 中构建 VSTO 插件项目时 dll 和其他文件的位置
【发布时间】:2016-12-19 06:43:23
【问题描述】:

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

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

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 以及来自插件项目的其他相关文件(数据文件等)部署在哪里?

【问题讨论】:

    标签: visual-studio-2015 vsto


    【解决方案1】:

    在 Visual Studio 中构建项目并“运行”加载项、Visual Studio 或 ClickOnce 时,我应该说,部署将已安装的加载项存储在 ClickOnce 缓存中。引用试图提醒您,当您想要专门运行“生产”位时,需要清除包含开发人员部署的“缓存”。

    要清理它,您可以在搁置最终构建的生产部署位之后使用 Visual Studio 菜单清理您的项目。这还将清除已部署的开发人员缓存(您会注意到加载项条目从您的目标 Office 应用程序中消失)

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

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

    【讨论】:

    • 1.在 VS 2015 中,我点击了 Rebuild Solution 菜单,但在 C:\Users\myUSerName\AppData\Local\Apps\2.0 中看不到任何文件 2. 如何以编程方式访问此文件夹?
    猜你喜欢
    • 1970-01-01
    • 2017-06-12
    • 2021-12-03
    • 1970-01-01
    • 2012-01-25
    • 2011-06-13
    • 1970-01-01
    • 2021-02-04
    • 1970-01-01
    相关资源
    最近更新 更多