IDE Project References

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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"
/>
 
Back
Top