更改程序集名称会导致错误 [英] Changing Assembly Name gives errors

查看:62
本文介绍了更改程序集名称会导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我更改项目的程序集名称时,即从"Gui"更改为"Gui2"时,在构建过程中会出现很多错误.其中大多数错误包含找不到xxxx(您是否缺少using指令或程序集引用?)

When I change the assembly name of my project, i.e from "Gui" to "Gui2", I get many errors during build. Most of these errors contain "xxxx could not be found (Are you missing a using directive or an assembly reference?)

我在做什么错了?

推荐答案

您需要修复对该程序集的所有引用,才能使用新名称.根据您所做的更改,您可能还需要修复名称空间引用.

You'll need to fix up all of the references to that assembly to use the new name. Depending on how you made the change, you may also need to fix up namespace references.

这篇关于更改程序集名称会导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆