英文:
Vb.net - error after converting website to solution '<name> is ambiguous because multiple kinds of members with this name exist in <type> '
问题
我将我的vb.net网站转换为多项目解决方案。但在创建后,每个aspx
文件和vb
文件中都出现了许多错误。如下是参考的屏幕截图。
在多个文件中,我有多个具有相同名称的标签或按钮,但在vb文件中,它没有引用到当前文件,并出现了以下错误:<name>
是模糊的,因为在类中存在具有相同名称的多种成员。
英文:
I converted by vb.net website into multiple project solution. But after creating that I am getting many errors in each aspx
file and vb
file. Below screenshot for reference.
I have multiple labels or buttons with same name in multiple file but in vb file its not referring to current file and getting error like <name> is ambiguous because multiple kind of members with the same name exist in class.
答案1
得分: 1
我将我的vb.net网站转换成了一个多项目解决方案。
嗯,这需要一些时间来消化。
目前还不清楚您是否有一个asp.net网站,您正在将该asp.net网站转换为一个asp.net网站“应用程序”。
在您开始将多个项目引入“一个网站应用程序”之前,您肯定会完成上述步骤。
因此,将asp.net网站转换为asp.net网站应用程序的一个很大的原因和好处是,这些类型的项目允许将多个项目合并为一个项目。
然而,多个项目的第二个目标和步骤呢?
在您成功将网站转换为网站应用程序之前,您不能走这条路。只有在那时,您才会希望引入多个项目到一个项目中的第二步。
因此,在整个变更过程开始时,我会假设您首先获得了一个有效的asp.net网站应用程序,然后您可以开始引入多个项目的道路。但是,在您将asp.net网站工作为asp.net网站“应用程序”之前,您不会执行或尝试进行多个项目的第二步。
正如指出的,我非常怀疑仅凭您提供的信息在这里发布会使任何人比您更能帮助您,因为您享受坐在计算机前处理这些项目的能力。我不确定什么更糟糕,是您认为提供的信息可以帮助解决问题,还是您在这里跳过了一些步骤(但再次,我们不知道您迄今为止已经完成了哪些工作以将网站转换为网站应用程序,也许您已经完成了?但是,我们不知道)。
事实上,也许您已经有了一个网站应用程序?同样,我们不知道。
我只能建议并声明,您在开始引入多个站点到一个项目中之前,肯定会将网站转换为一个有效的“应用程序”。
英文:
>I converted by vb.net website into multiple project solution.
Hum, that's quite a bit to digest here.
It not clear if you has a asp.net web site, and you are converting that asp.net web site into a asp.net web site "application".
You would most certainly do the above step BEFORE you THEN start to introduce multiple projects into "one web site appliation".
So, without question one great reason and benefit to convert a asp.net web site into a asp.net web site application is those types of projects allow multiple projects into one project.
However, that 2nd goal and step of multiple projects?
You can't go down that road until such time you had a successful conversion to a web site application first. Then and ONLY then do you want the 2nd step of introduction of multiple projects into one project.
so, at the start of this whole change over, I would assume you FIRST obtained a working asp.net web site application, and THEN you can start down the road of introduction of multiple projects into one project. However, you would not do nor attempt this 2nd step of multiple projects UNTILL such time you have the asp.net web site working as a asp.net web site "application".
As pointed out, I VERY much doubt a simple post here with what you provided is going to allow anyone here to help you more then you who enjoys the ability to be sitting on that computer with the those projects. I not sure what is worse, you thinking that with the information that's been provided that we can help with such limited information, or that you skipped some steps here (but then again, we don't know what you done so far for converting the web site into a web site application, and maybe you done that already? (but, we have no clue and don't know).
in fact, maybe you already have a web site application? Again, we don't know.
I can only suggest and state that you most certainly will convert the web site into a working "application" BEFORE you start introduction of multiple sites into that one project.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论