"""
test-using-cobra-lang-compiler-dll.cobra
# install Cobra:
cd CobraSVN\Source
bin\install-from-workspace
cd .. # get out of Source directory
cobra test-using-cobra-lang-compiler-dll.cobra
# or
cobra -v:3 test-using-cobra-lang-compiler-dll.cobra
"""
use Cobra.Lang.Compiler
class X
def main is shared
c = CommandLine
trace c
Results in this error:
- Code: Select all
error: Metadata file "Cobra.Lang.Compiler.dll" could not be found
The Cobra compiler doesn't complain at all. It's the C# compiler that generates that error.
"gacutil" shows that the DLL is actually there, but apparently there is something wrong with it.
This happens on .NET/CLR 2 on Win 7 32-bit, .NET/CLR 4 on Win 7 64-bit and Mono 2.10 on both Linux and Mac. Mysteriously, Mono 2.6 on Linux works fine.
One guess is that you cannot reuse the same "public key token" for a 2nd DLL.
I can't be on Cobra the next 3 days, so I thought I would throw this out there.