同时编译时出现错误以下信息“找不到类型或名称空间名称"Businesslogic"(您是否缺少using指令或程序集引用?) [英] while compile getting below error " The type or namespace name 'Businesslogic' could not be found (are you missing a using directive or an assembly reference?) "
问题描述
在编译我的项目时出现错误
找不到类型或名称空间名称" Businesslogic(是否缺少using指令或程序集引用?)" :)
重建步骤:
1)我创建了一个"WcfServiceLibrary"类库文件,并且可以正常使用
2)我创建了一个新的类库文件,并在同一项目中将其命名为"BusinessLogic".
3)我已经将引用"BusinessLogic"添加到"WcfServiceLibrary"中,但是当我尝试将其添加到"WcfServiceLibrary"命名空间中时,出现以下错误.
找不到类型或名称空间名称" Businesslogic(是否缺少using指令或程序集引用?)"
请给我建议..:confused:
抱歉,我在这里拼错了.但是我仅在引用中添加了"BusinessLogic".:)
thnkx,
Dhana
Hi,
While compile my project getting below error
" The type or namespace name ''Businesslogic'' could not be found (are you missing a using directive or an assembly reference?) " :)
Steps to recreate:
1)I have created a "WcfServiceLibrary" class library file and its working fine
2)I have created a new class library file and i named it as "BusinessLogic" in the same project.
3)I have added the reference "BusinessLogic" into "WcfServiceLibrary" but when I trying to add it in "WcfServiceLibrary" Namespace getting the below error.
" The type or namespace name ''Businesslogic'' could not be found (are you missing a using directive or an assembly reference?) "
Plz advice.. :confused:
sorry, i misspelled here.But i have added in reference as "BusinessLogic" only.. :)
thnkx,
Dhana
推荐答案
错误消息中的"BusinessLogin"(在步骤3中)和"Businesslogic"之间的区别是否很明显?
Is the difference between "BusinessLogin" (in step 3) and "Businesslogic" in the error message perhaps significant?
检查拼写和字符大小写. C#区分大小写,即小写字母和大写字母完全不同.
名称空间是Businesslogic还是BusinessLogin还是什么?它确实应该匹配,而且我很确定您输错了:doh:
尝试双击错误,找到错误输入的行,然后重命名.
Check the spelling and character casing. C# is case-sensitive, that is, lowercase and UPPERCASE are completely different.
Is the namespace Businesslogic or BusinessLogin or what? It really should match, and I''m pretty sure you mistyped it :doh:
Try to double-click the error, to locate where the mistyped line is, and rename it.
这篇关于同时编译时出现错误以下信息“找不到类型或名称空间名称"Businesslogic"(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!