【发布时间】:2015-05-06 01:57:34
【问题描述】:
我有一个应用程序,我们的离岸开发人员正在尝试更新它。一年前构建的代码没有问题。现在,当他们检查代码并尝试构建它时,他们会在 Global.asax 中得到一个参考错误:
Error 1 The type or namespace name 'HartSourceLib' could not be found (are you missing a using directive or an assembly reference?) c:\Users\rs02130\Desktop\bip\BIProductionSupport\Global.asax 24 9 BIProductionSupport
项目参考中有一个指向 HartSourceLib DLL 的参考。 DLL 存在于引用的位置,并且与原始版本中使用的 DLL 相同。我不熟悉 Global.asax 中外部引用的使用。我们尝试过使用 和 都没有解决问题。这是 Global.asax 的示例:
我们是否在 Global.asax 中遗漏了什么?如果不是,什么可能导致参考问题?
注意:他们使用的是 VS2010 和 3.5 框架。我将解决方案转换为 VS2012 和 4.5 框架。两者都不起作用。
【问题讨论】:
标签: visual-studio-2010 visual-studio-2012 global-asax assembly-resolution