The GAC is searched at *runtime* for assembly by the assembly resolver.
At *compile* time the C# compiler looks in the current directory, the system directory, along the LIB path and directories specified with the /LIB command line switch. So you'll need to make sure the assembly can be found in one of those.
This is necessary because if it purely went to the GAC when you reference an assembly by its file name, which version would it pick up?
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk
I installed WSE 1 and WSE 2 using the msi files.
I see both registered in the GAC.
However, when I try to reference the .dll using the command line
compiler ( /r:microsoft.web.services.dll ) it tells me that it cannot
find it.
Do I need to set my path as well ?
I thought the GAC would automatically tell the c# compiler where to find
the right dll based on the reference to the cache....