powerpack

F# Powerpack's Metadata doesn't recognize FSharp.Core as an F# library

旧街凉风 提交于 2019-12-11 00:09:12
问题 Here's my test code to isolate the problem: open Microsoft.FSharp.Metadata [<EntryPoint>] let main args = let core = FSharpAssembly.FromFile @"C:\Program Files\FSharp-2.0.0.0\\bin\FSharp.Core.dll" let core2 = FSharpAssembly.FSharpLibrary let core3 = System.AppDomain.CurrentDomain.GetAssemblies() |> Seq.find (fun a -> a.FullName.Contains "Core") |> FSharpAssembly.FromAssembly core.Entities |> Seq.iter (printfn "%A") 0 All three let s should give me the same FSharpAssembly. Instead, all 3 throw

“CompileAssemblyFromSource” in f# powerPack codeDom

大兔子大兔子 提交于 2019-12-10 14:43:40
问题 I am trying to get going a basic program to dynamically compile and run f# code. I am trying to run the following code: open System open System.CodeDom.Compiler open Microsoft.FSharp.Compiler.CodeDom // Our (very simple) code string consisting of just one function: unit -> string let codeString = "module Synthetic.Code\n let syntheticFunction() = \"I've been compiled on the fly!\"" // Assembly path to keep compiled code let synthAssemblyPath = "synthetic.dll" let CompileFSharpCode(codeString,

Problem with F# Powerpack. Method not found error

Deadly 提交于 2019-12-08 17:08:09
问题 I've had F# Powerpack for a while now. It ran perfectly. But a few days before, I don't know what I did, whenever I compile my project and run it, I get an error Method not found: 'System.Object Microsoft.FSharp.Text.Parsing.Tables`1.Interpret(Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Text.Lexing.LexBuffer`1<Char>,!0>, Microsoft.FSharp.Text.Lexing.LexBuffer`1<Char>, Int32)'. I tried on my laptop too. Then I thought, that it might be an error in my code. So I started a new project, F

How to install and use F# Powerpack in Mono?

耗尽温柔 提交于 2019-12-06 01:07:35
问题 I need to install use F# powerpack. I use mono version 2.10.2 on Mac. mono --version Mono JIT compiler version 2.10.2 (tarball Mon Apr 18 09:14:01 MDT 2011) Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: normal Notification: kqueue Architecture: x86 Disabled: none Misc: debugger softdebug LLVM: yes(2.9svn-mono) GC: Included Boehm (with typed GC) Installation. Download the powerpack zip file from here. Unzip the file to directory ~/bin . Add the