Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio won't find references

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.

enter image description here

like image 543
Zed_Blade Avatar asked Dec 01 '22 18:12

Zed_Blade


1 Answers

My guess is that your DLL uses a more recent .NET framework than your application does.

Check the properties for your DLL source (right-click on the DLL code in the solution explorer and choose Properties). Go to Application - Target .NET framework and compare the version to the one the application itself uses (right-click on the project code). Note: under your application properties check both the settings under Application - Target .NET framework AND under Publish - Prerequisites.

like image 170
Siebe Bosch Avatar answered Dec 06 '22 11:12

Siebe Bosch