更改 VSTO 项目的默认命名空间

发布于 2024-12-08 10:09:41 字数 156 浏览 2 评论 0原文

是否可以更改 VSTO 项目的默认命名空间?...我尝试在记事本中打开项目文件并将 rootnamespace xml 参数更改为我所需的新名称,但无法加载Word 启动时的加载项。它会引发一般运行时错误。我怀疑清单仍然指向以前的名称空间。

有什么想法吗?

Is it possible to change the default namespace of a VSTO project?... I've tried opening the project file in notepad and changing the rootnamespace xml param to my new desired name, but it fails to load the add-in when Word starts. It throws a generic runtime error. I suspect that the manifest still points to the previous namespace.

Any ideas?

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

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

发布评论

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

评论(1

宣告ˉ结束 2024-12-15 10:09:41

“官方声明”,您无法更改 VSTO 项目的默认命名空间。但有一种方法,通过编辑项目文件并进行一些查找和替换。 这篇博文解释了如何做到这一点。

"Officially", you cannot change the default namespace of a VSTO project. But there is a way, by editing the project file and doing some find&replace. This blog post explains how to do it.

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