dukedagmor
dukedagmor

Reputation: 171

FSharp.Compiler.Service compile to dll errors

I am currently working on a project to implementing mutation-testing for F#. To access the FCS process I am using the FSharp.Compiler.Service package.

I am having some trouble with the compilation process and the compiled DLL.

I'm using FSharp.Compiler.Service to compile a project's AST's to

Has anyone encountered these issues before? Or knows a way to fix the errors I’m getting?

Upvotes: 10

Views: 186

Answers (2)

dukedagmor
dukedagmor

Reputation: 171

Updating from FSharp.Compiler.Service 37 to 38 has resolved the methodnotfound error

By hardcoding the islastcompiled in the parsedinput (syntaxtree) to Tuple(true,true) in the syntaxtree containing the entrypoint, the error doesn't trigger.

The islastcompiled solution is sketchy and I would like to have a better way to do this.

Upvotes: 2

7sharp9
7sharp9

Reputation: 2167

I have done this many times. You might want to post what the input arguments are when you are trying to compile, the lack of something in the input is often the cause for an error.

Upvotes: 3

Related Questions