Hi All;

I'm playing around with Cecil for use in a Compiler project targeting
Silverlight/Moonlight from server side .Net.  Anyways, to that end, I'm
starting to play around with Cecil but having a bit of a problem:  I'm
getting a "System.NotImplementedException:The method or operation is not
implemented" error at line 22 of the included f# script file-the line where
I create create a new instance of MethodDefinition.

Here's the full session from fsi:
Microsoft F# Interactive, (c) Microsoft Corporation, All Rights Reserved
F# Version 1.9.7.8, compiling for .NET Framework Version v2.0.50727

For help type #help;;

>
[Loading C:\Users\Michael
Kohout\Documents\CecilCompiler\CecilCompiler\Module1.fs]

namespace FSI_0002


--> Referenced 'C:\Users\Michael
Kohout\Documents\CecilCompiler\CecilCompiler\Mono.Cecil.dll'

Binding session to 'C:\Users\Michael
Kohout\Documents\CecilCompiler\CecilCompiler\Mono.Cecil.dll'...
System.NotImplementedException: The method or operation is not implemented.
   at Mono.Cecil.DefaultImporter.ImportTypeReference(TypeReference t,
ImportContext context)
   at Mono.Cecil.DefaultImporter.ImportFieldReference(FieldReference fr,
ImportContext context)
   at Mono.Cecil.Cil.MethodBody.Clone(MethodBody body, MethodDefinition
parent, ImportContext context)
   at Mono.Cecil.MethodDefinition.Clone(MethodDefinition meth, ImportContext
context)
   at Mono.Cecil.TypeDefinition.Clone(TypeDefinition type, ImportContext
context)
   at Mono.Cecil.ModuleDefinition.Inject(TypeDefinition type, IImporter
importer)
   at Mono.Cecil.ModuleDefinition.Inject(TypeDefinition type)
   at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:\Users\Michael
Kohout\Documents\CecilCompiler\CecilCompiler\Script.fsx:line 22


As I mentioned before, I've included the F# script as an attachment.  The
version of Cecil I'm using is from the monocharge-20091215 download from
here <http://mono.ximian.com/daily/>, and I'm using .Net 3.5 on Vista with
F#.

Thanks for any hints you can give.
Mike Kohout

-- 
--
mono-cecil

Attachment: Script.fsx
Description: Binary data

Reply via email to