简体   繁体   English

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

[英]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.

相关问题 无法在Visual Studio 2013中更改项目的默认命名空间 - Can't change a project's Default Namespace in Visual Studio 2013 TemplateBuilder和SideWaffle。 项目模板。 更改默认的根名称空间 - TemplateBuilder and SideWaffle. Project template. Change default root namespace 更改项目的默认名称空间和程序集名称。 它会影响引用它的项目吗 - Change in default namespace and assembly name of a project. Does it affect project which reference it 如何更改整个项目的命名空间? - how to change namespace of entire project? 更改Xamarin Forms项目的名称空间和项目名称 - Change Namespace and Project name of a Xamarin Forms project 如何使用 roslyn 获取项目的默认命名空间? - How get default namespace of project with roslyn? 在Visual Studio中将其他名称空间导入为项目默认值 - Import additional namespace as project default in Visual Studio 错误:项目的默认 XML 命名空间必须是 MSBuild XML 命名空间 - Error: The default XML namespace of the project must be the MSBuild XML namespace Prism:项目默认的 xml namespace 必须是 msbuild xml namespace - Prism: the default xml namespace of the project must be the msbuild xml namespace 将默认的xml名称空间(xmlns)更改为自定义名称空间 - Change default xml namespace(xmlns) to a custom one
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM