且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio不会找到引用

更新时间:2023-02-27 10:32:10

对于什么是值得的,即使更改.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!!!!