I'm compiling from csc.exe (well, CruiseControl is...), and I need to reference a DLL in the GAC. I do not have the correct version of this DLL as a simple file, but there is a correct version in the GAC.
However, you can't reference assemblies in the GAC with csc -- you have to have the path to the actual file.
I've found some references that claim you can reverse engineer the path to the actual file, but I haven't been able to get them work. I fired up Fusion logging, and I can see where the runtime is getting the file from, but using a filepath to that location in my reference does not work.
So, how do you provide csc with a reference to an assembly version that only exists in the GAC?