Nant 构建错误:错误 CS0234:类型或命名空间名称“本地化”不存在
我有一个大小合适的 Nant 构建文件(8 个项目),其中项目相互依赖,依此类推,一切正常。但是我去添加一个新项目(按照构建顺序的第一个),它编译正常并且 dll 显示出来,但是当我在另一个项目中引用它时,我收到错误:
错误 CS0234:类型或命名空间 名称“本地化”不存在于 命名空间“XXX”(您是否缺少 程序集参考?)
现在在 csc 命令中,我显然已经
<include name="./bin/XXX.Localization.dll"/>
检查了目录并且它就在那里,我对发生的事情感到非常困惑。在这个项目中,我还有一堆对同一目录中其他工作正常的 dll 的引用。感谢您抽出时间。
I have a decent size Nant build file (8 projects) where projects depend on eachother and so on, and everything works fine. But I went to add in a new project (first in the build order), it compiles fine and the dll shows up, but when I go to reference it in another, I get the error:
error CS0234: The type or namespace
name 'Localization' does not exist in
the namespace 'XXX' (are you missing
an assembly reference?)
Now in that csc command, I clearly have
<include name="./bin/XXX.Localization.dll"/>
I have checked the directory and it is there, I am very confused as to what is happening. In this project, I also have a bunch of references to other dlls in the same directory that work fine. Thanks for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于该项目中没有 .cs 文件,因此它无法正常工作(只有 resx 文件)。我只是添加了一个虚拟类,效果很好。
Since the project had no .cs files in it, it didn't work right (only resx files). I simply added in a dummy class and it worked fine.