473,388 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to avoid broken references when give out projects

Dear all,
is it possible to add reference with a relative path instead of absolute?
Thanks,
Mar 22 '06 #1
5 2176
Tanja Krammer wrote:
Dear all,
is it possible to add reference with a relative path instead of absolute?
Thanks,


Yes...

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
Mar 23 '06 #2

"Tanja Krammer" <ta***********@delay.nop> wrote in message
news:uP**************@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 .
Mar 23 '06 #3
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?
"Hal Rosser" <hm******@bellsouth.net> schrieb im Newsbeitrag
news:0B**************@bignews8.bellsouth.net...

"Tanja Krammer" <ta***********@delay.nop> wrote in message
news:uP**************@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 .

Mar 23 '06 #4
"Tanja Krammer" <ta***********@delay.nop> schrieb:
is it possible to add reference with a relative path instead of absolute?


Check out the contents of the VB.NET project file in notepad. It will
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/>

Mar 23 '06 #5
"Tanja Krammer" <ta***********@delay.nop> schrieb
Dear all,
is it possible to add reference with a relative path instead of
absolute? Thanks,

This might be of interest:
http://msdn.microsoft.com/library/en...assemblies.asp
Armin

Mar 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hugoski | last post by:
Hi... Our company has a fairly large client-server application and is very complex in its construction. The main point about that is there are a number of separate client pieces that require...
9
by: Gary McGill | last post by:
I'm building a set of DLLs in .NET that I plan to call from a VB6 application. I've almost got that to work, but now I find that whenever I re-build any of my .NET DLLs, the reference to that...
0
by: TEK | last post by:
Hello We have a quite huge project. To limit the solution size, rebuild time and so on we have divided the project in two different solution. One solution that holds the buiness entities, or...
2
by: JD | last post by:
I'm trying to add a custom utility.mde reference to an application from code using the standard Application.References.AddFromFile code. IT has worked really well with A2K for a couple of years but...
3
by: SAM | last post by:
Hi everyone, I consider myself a very competent programmer when it comes to actual programming and analyzing the business that I'm modelling. I am now crossing into what I would consider Access...
1
by: Amos | last post by:
My Solution has three different projects: GUI, Api, Match. Project GUI includes a reference to Match.dll and Project Match includes a reference to Api.dll . Project Api doesn't include any...
0
by: Tanja Krammer | last post by:
Dear experts, Is it possible to add reference to the project with relative path? If I give out my VS projects links to references are broken, because of absolute path and I have no idea how to fix...
3
by: Jerad Rose | last post by:
This is regarding Visual Studio 2003 (framework 1.1). We have several projects/libraries. Of course, many of these reference each other. If we only had one solution, we would simply add all of...
3
by: DonJefe | last post by:
Does anyone have experience using project->project references in large solutions? What are the plus/minuses that you have found? Currently, we are using the binary assembly references for our...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.