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

Error with Release compilation in Visual Studio 2017 #13

Open
gmlion opened this issue Nov 18, 2017 · 0 comments
Open

Error with Release compilation in Visual Studio 2017 #13

gmlion opened this issue Nov 18, 2017 · 0 comments

Comments

@gmlion
Copy link

gmlion commented Nov 18, 2017

I get The module/namespace 'MongoDB.Bson.Serialization' from compilation unit 'MongoDB.Bson' did not contain the namespace, module or type 'IBsonSerializationOptions'

when compiling the Release build of my project in VS 2017. The Debug compilation works fine.
A similar error also occurs in F# interactive executing
Serializers.Register()
but I somehow work around it re-opening MongoDB.Bson until it works (usually a second time is enough).
So, executing in F# interactive:
** open MongoDB.Driver open MongoDB.Bson open MongoDB.FSharp Serializers.Register() // this fails open MongoDB.Bson Serializers.Register() // this works **

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

No branches or pull requests

1 participant