是否可以创建一个便携式 VSTO 应用程序?

发布于 2024-12-15 14:30:46 字数 87 浏览 3 评论 0原文

是否可以创建一个便携式 VSTO 应用程序? (例如,没有 setup.exe、没有管理员权限、没有 clickonce 等)

Is it possible to create a portable VSTO application ? (e.g without setup.exe, without admin rights, without clickonce, etc.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霞映澄塘 2024-12-22 14:30:47

任何 vsto 解决方案都要求:

  • .net 框架安装在目标计算机上
  • VSTO 运行时安装在目标计算机上

如果您还没有安装这些,那么您的问题的答案是:否

如果您将这些定义为先决条件,则有有 2 种 vsto 解决方案。它可以是基于文档的解决方案或 Office 插件。

  • 基于文档的解决方案将程序集放在文档旁边,并自动加载 Excel 文件。不需要单独的设置,因此您可以将其称为“便携式”(取决于您的先决条件)。
  • 真正的 Office 加载项需要创建注册表项。我认为没有任何方法可以让它们在没有某种设置/安装过程的情况下运行

有关文档级解决方案以及如何在运行时处理它们的更多信息,请查看 此处

Any vsto solution requires that:

  • The .net framework is installed on the target machine
  • The VSTO runtime is installed on the target machine

If you don't have those installed already the answer to your question is: No

If you define those as prerequisites then there are 2 kind of vsto solutions. It can be either a document based solution or an office add-in.

  • Document based solutions have the assemblies along side of the document and get automatically loaded with the excel file. There is no seperate setup required so you could call those 'portable' (depending on what your prereqs are).
  • Real office add-ins require registry keys to be created. I don't think there is any way you could get those running without some sort of setup/install procedure

For more information about document level solutions and how they are dealt with on runtime look here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文