[英]Change the default namespace of a VSTO project
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. 是否可以更改VSTO项目的默认命名空间?...我尝试在记事本中打开项目文件并将rootnamespace
xml参数更改为我想要的新名称,但是在Word启动时无法加载加载项。 It throws a generic runtime error. 它抛出一个通用的运行时错误。 I suspect that the manifest still points to the previous namespace. 我怀疑清单仍然指向以前的命名空间。
Any ideas? 有任何想法吗?
"Officially", you cannot change the default namespace of a VSTO project . “正式”, 您无法更改VSTO项目的默认命名空间 。 But there is a way, by editing the project file and doing some find&replace. 但是有一种方法,通过编辑项目文件并进行一些查找和替换。 This blog post explains how to do it. 这篇博客文章解释了如何做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.