Metadata file "Cobra.Lang.Compiler.dll" could not be
Posted: Thu May 17, 2012 11:11 pm
In case any of you want to help take a crack at this, what I'm currently working on is a problem where even though the current (svn latest) Cobra installer can successfully build Cobra.Lang.Compiler.dll and place it in the GAC, attempting to use it fails:
Results in this error:
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.
"""
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.