VB 2008<系统找不到指定的引用> [英] VB 2008 <The system cannot find the reference specified>

查看:161
本文介绍了VB 2008<系统找不到指定的引用>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2008中创建了一个类库,当我尝试添加dll作为参考时,我在项目引用中的Path字段的标题中收到消息。我已经去了一个星期,试图弄清楚这个问题,我还没有想到什么。奇怪的是我可以为Visual Studio 2010项目添加相同的引用,它的工作效果非常好。



我使用VS 2008来构建它,因为dll isn'在内部使用,需要与.Net 3.5兼容。任何想法?



编辑:我还发现,引用c#项目中的dll也可以正常工作。

解决方案

解决方案



使用 DependencyWalker ,我能够发现一些晦涩的dll是间接地是
引用(IEShims.dll),但找不到。经过一些更多的试验和错误,我发现我的项目有指定项目的DEBUG目录的指定参考路径(项目属性 - >引用 - >参考路径)。我不得不删除该参考路径,然后解决了上述问题。


I've created a class library in Visual Studio 2008, and when I try to add the dll as a reference, I get the message in the title for the Path field in my project references. I've been going for a week trying to figure out this issue, and I haven't been able to come up with anything. The strange thing is I can add the same reference to a Visual Studio 2010 project, and it works perfectly fine.

I used VS 2008 to build it because the dll isn't used in house and needs to be compatible with .Net 3.5. Any ideas?

EDIT: I also found out that referencing the dll in a c# project works fine as well. It's only Visual Basic that's causing me problems.

解决方案

Resolution

Using DependencyWalker, I was able to find out that some obscure dll was indirectly being referenced (IEShims.dll) but couldn't be found. After a little more trial and error, I found my project had a specified reference path (Project Properties -> References -> Reference Paths) that pointed to the project's DEBUG directory. I had to remove that reference path, which then resolved the above issue.

这篇关于VB 2008<系统找不到指定的引用>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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