Visual Studio不会找到引用 [英] Visual Studio won't find references

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

问题描述



这里的问题是Visual Studio (2005)抛出了很多错误,因为它找不到dll的引用。
这显然不会让VS建立项目。



尽管项目引用了同一个文件夹, dll是bin文件夹。



我如何规避这些问题,让VS正确引用dll?



以下打印屏幕显示项目的参考画面。



解决方案

对于什么是值得的,即使更改.vbproj文件并删除多个关于硬编码值的行,
我最终检出了项目,再次删除了给定DLL的所有引用,然后使用GUI添加。



获得的经验教训,不要尝试在不使用VB2005 GUI的情况下更新一个较新版本的DLL。
最简单的解决方案可能是将所有内容转移到另一个项目。找到可视化工作室离开硬编码路径的位置将非常耗时。



WOOT !!!!将DLL文件编译为.NET框架的较低版本,并将修复问题!!!!


I'm working with some application handed over by another person in which I must document the requirements, build and deploy processes.

The problem here is that Visual Studio (2005) is throwing a lot of errors since it can't find the references for the dlls. This obviously won't let VS build the project.

Everything works fine on the persons computer but not on mine, even though the project references the same folder where the dlls are, the bin folder.

How can I circumvent these problems and get VS to properly reference the dlls?

The following printscreen shows the references screen for the project.

解决方案

For what it's worth, even after changing the .vbproj file and removing many lines about hard coded values, I eventually checked out the project again removed all references to the given DLL and then added it using the GUI.

Lesson learned, don't try to change out one DLL for a newer version without using VB2005 GUI. The easiest solution will probably be to transfer everything to another project. It will be incredibly time consuming to find where visual studio has left the hard coded path at.

WOOT!!!! Compile the DLL file to a lower version of the .NET framework, and it will fix the problem!!!!

这篇关于Visual Studio不会找到引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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