VBAHole22 Posted April 2, 2004 Posted April 2, 2004 I have a win app that I am developing on one machine but am designing to run on another machine. I am refernencing an object library of another program on my dev box that happens to reside at a different path on the ultimate machine. I don't have studio on the other machine. I can't edit the path to the refrence on my dev box. Do I have to move the whole project over to the deployment box and then edit with notepad? I would rather just get it right in visual studio so I only have to deploy the exe. BUt how can I designate the path of the refrence? Quote Wanna-Be C# Superstar
Administrators PlausiblyDamp Posted April 2, 2004 Administrators Posted April 2, 2004 If you are referencing a .Net DLL could you not just put it in the same folders as the EXE or failing that why not install the DLL to the GAC? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Rick_Fla Posted April 2, 2004 Posted April 2, 2004 Good starting point to look: Reference Paths Added: OK, I think I found a better example using the appname.exe.config file. Reference Path at Runtime Quote "Nobody knows what I do until I stop doing it."
VBAHole22 Posted April 2, 2004 Author Posted April 2, 2004 I'm still confused and haven't gotten it to fly yet. The trouble is that when I change something I then need to compile it in VS but it won't compile if it can't get the right reference path. Kind of a Catch-22 deal. I tried the confige file and I tried to just move the dll right next to the exe on the box I want it to run on. Then I get an error about the manifest' location of the reference being different from the reference itself and then when I switch back to Studio it wants to Reload the whole thing and rollback my changes. How would I implement the code solution as outlined in Sub AddReferencePath(ByVal pathToAdd As String) Would that be a button on my form and then I click on it once when I start up? Quote Wanna-Be C# Superstar
Rick_Fla Posted April 2, 2004 Posted April 2, 2004 No, the sub would be in either the form load or form initalize section of the form. The DLL you are referencing, is it one you are building? Have you tried using REGSVR32.EXE on the second machine to register the DLL? Sorry I can not be of more help, I am learning this stuff as I go along. Quote "Nobody knows what I do until I stop doing it."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.