Wei Ma
Wei Ma

Reputation: 3155

Where is the Microsoft.FSharp.Quotations.Typed module in F# 3

I have asked a related question here, and the answers I got was not to my satisfactory. Today, I ran into this tutorial and thought it may be able to help my situation.

I copy/pasted the example code to Visual Studio, and found that

Microsoft.FSharp.Quotations.Typed and
Microsoft.FSharp.Quotations.Raw

modules no longer existed.

Is there any replacement in F# 3?

Thanks a lot.

Upvotes: 4

Views: 212

Answers (1)

Jack P.
Jack P.

Reputation: 11525

That tutorial was written in 2008, so it precedes even F# 2.0 (which shipped in April 2010 as part of VS2010).

For F# 2.0 and 3.0, you only need to open one namespace (MSDN):

open Microsoft.FSharp.Quotations

The Code Quotations (F#) article on MSDN has more information and code examples.

Upvotes: 2

Related Questions