Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix XmlProvider cross-compilation to F# 3.1 #205

Closed
ovatsus opened this issue Sep 16, 2013 · 2 comments
Closed

Fix XmlProvider cross-compilation to F# 3.1 #205

ovatsus opened this issue Sep 16, 2013 · 2 comments
Labels
Milestone

Comments

@ovatsus
Copy link

ovatsus commented Sep 16, 2013

Currently compiling code that uses XmlProvider with VS2013 fails

@ovatsus
Copy link
Author

ovatsus commented Dec 3, 2013

After some investigation, I came to the conclusion F# 3.1 is not happy with this:

class XmlProvider+SetChoice : string option
    member Boolean: bool option with get
    TextRuntime.ConvertBoolean("", this)

    member Number: int option with get
    TextRuntime.ConvertInteger("", this)

    member String: string option with get
    TextRuntime.ConvertString(this)

and gives the error The type provider 'XmlProvider' used an invalid parameter in the ParameterExpression: this
F# 3.0 handled this fine

@ovatsus
Copy link
Author

ovatsus commented Dec 3, 2013

Ah turns out we weren't mapping option from FSharp.Core 4.3.1.0 to 4.3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant