IDE Project References

G

Guest

When I add a reference to a VS.NET project by using the Browse button, the
Path in the Reference properties seems to be read only. I really would like
to use relative paths so individuals on different systems can use their own
local directory structure when build. Is there anyway to accomplish this?
 
B

bazad

Bob Costello said:
When I add a reference to a VS.NET project by using the Browse button, the
Path in the Reference properties seems to be read only. I really would like
to use relative paths so individuals on different systems can use their own
local directory structure when build. Is there anyway to accomplish this?

If you have source code to the Assemblies it is better to put
everything into one solution and add projects instead of assemblies.
In "Add Reference" dialog you would use Projects tab in this case.

If you have no source code (3rd party assemblies), the best way is to
keep 3rd party assemblies as part of the solution tree. Add Assemlies
with Browse button. Then close Visual Studio and modify *.csproj file
manually:

<Reference
Name = "3rdParty"
AssemblyName = "3rdParty"
HintPath = "..\ExternalDependencies\3rdParty.dll"
/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top