What is the Reference folder used for?

  • Thread starter Thread starter Jon
  • Start date Start date
I think, in VS2k2, you had to reference/include dlls using the '#using
<your.dll>. By adding it to the reference folder, you don't have to put
'#using <your.dll>.
 
dont think so cuz I added system.windows.form..dll and system.drawing.dll to
my solution.
I never entered/used "#using <system.windows.form..dll>" and the app
compiled and the classes/types contained in those dlls were showing up in
intelisense.
 
Thanks Jon. With your help, I was able to get things working.

Here are the caveats that I found.

1) The references are injected into the system when the precompiled header is compiled.
Since I was "Compile"ing a file and not "Build"ing the project, the precompiled header was not being compiled. Hence the references
were not being injected for me.

2) The DLLs for project references are copied to the proper directory only if "Using managed code" was set for the project. Since
I had a 1000 files "Not Using managed code" and only 1 file "Using managed code", I set that property only on that 1 file. Hence the
DLL's were not being copied for me.

You can see why I thought the reference folder was totally useless.
 
Back
Top