|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to avoid broken references when give out projectsDear all,
is it possible to add reference with a relative path instead of absolute? Thanks, Tanja Krammer wrote:
> Dear all, Yes...> is it possible to add reference with a relative path instead of absolute? > Thanks, > > Of course I could be more helpful if you described how you were using the path in question. If you just need to know the directory where the executable was launched from then use Application.StartupPath Chris "Tanja Krammer" <tanja_kram***@delay.nop> wrote in message Yes, but keep in mind the reference path needs to be in reference to the exenews:uPKYLLgTGHA.4452@TK2MSFTNGP12.phx.gbl... > Dear all, > is it possible to add reference with a relative path instead of absolute? > Thanks, > file - not the source code - so you're starting in the bin folder. FOr instance, if you access an image in the same folder as the exe you can use "./imagename.jpg" - or leave off the "./" if you want . But how you do that? When you press "Add Reference" button you have no field
to type something, you only can browse. Do you edit project file directly? Show quoteHide quote "Hal Rosser" <hmros***@bellsouth.net> schrieb im Newsbeitrag news:0BoUf.610$q6.185@bignews8.bellsouth.net... > > "Tanja Krammer" <tanja_kram***@delay.nop> wrote in message > news:uPKYLLgTGHA.4452@TK2MSFTNGP12.phx.gbl... >> Dear all, >> is it possible to add reference with a relative path instead of absolute? >> Thanks, >> > > Yes, but keep in mind the reference path needs to be in reference to the > exe > file - not the source code - so you're starting in the bin folder. > FOr instance, if you access an image in the same folder as the exe you can > use "./imagename.jpg" - or leave off the "./" if you want . > > "Tanja Krammer" <tanja_kram***@delay.nop> schrieb: Check out the contents of the VB.NET project file in notepad. It will > is it possible to add reference with a relative path instead of absolute? contain a relative path and an absolute "hint path" for references, which helps VS.NET to quickly locate the DLL when the project is opened. However, the compiled application should be able to find the DLL if it's contained in the application's directory. BTW: There is a German VB.NET group available ("microsoft.public.de.german.entwickler.dotnet.vb"). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> "Tanja Krammer" <tanja_kram***@delay.nop> schrieb This might be of interest:> Dear all, > is it possible to add reference with a relative path instead of > absolute? Thanks, http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp Armin
VB.NET - Issues with VB.NET FTP Class to UNIX FTP Server
what's up? reading xml Best Practices - Coding Convention Question How do you know when all databindings on form are complete? Reading Excel in VB.NET SQL Distinct Create 30 Day trial version Building VB.NET Interface definitions from a COM interface Committing Byte Array to Disk Process BUG? |
|||||||||||||||||||||||