samsmithnz Posted February 28, 2004 Posted February 28, 2004 I have a .net dll that I wrote for my application. How do I give it a relative reference, so that when I compile my app and copy the app and dll to another folder, it uses the dll in the local folder..? Quote Thanks Sam http://www.samsmith.co.nz
Moderators Robby Posted February 28, 2004 Moderators Posted February 28, 2004 Like Application.StartupPath? Quote Visit...Bassic Software
samsmithnz Posted February 29, 2004 Author Posted February 29, 2004 No, in my project properties, under reference path, is the abosulete path to my dll. I can't change the path there to a relative path, and if I compile and deploy my app in another folder (or computer), it can't find the dll, cos its not in c:\projects\clone\bin... Quote Thanks Sam http://www.samsmith.co.nz
Moderators Robby Posted February 29, 2004 Moderators Posted February 29, 2004 Have you tried to set the property to "Copy Local" ? Also, are you deploying using a setup package? Quote Visit...Bassic Software
samsmithnz Posted February 29, 2004 Author Posted February 29, 2004 Copy local is already set to true. I'm not using a setup package, but I shouldn't have too, I'm only copying the compiled code to another folder on my computer. Quote Thanks Sam http://www.samsmith.co.nz
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.