Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Wanna-Be C# Superstar
Posted

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?

Wanna-Be C# Superstar
Posted

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.

"Nobody knows what I do until I stop doing it."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...