Environmental variable PATH for vb.net
I am building an executable which is dependent on a class library dll. Now after I build the executable I try to move the executable to a new directory and try to execute it. It complains that class library dll is not found. I tried to use the system environmental variable PATH to point to the class library dll. Still it doesn't work? Can we not use system environmental variable PATH for this purpose?
Scott LyslePosted Oct 25, 2006, 2:24 AM
The dll should be in the bin folder; this call points to that:
Application.StartupPath
If you have moved the dll, you might want to remove it from the project and add the dll again.