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

This construct is deprecated. BSON reading and writing has been moved to its own package #1277

Closed
draganjovanovic1 opened this issue Apr 7, 2017 · 4 comments

Comments

@draganjovanovic1
Copy link

I am using BsonWriter in my project and since update to 10.* I am getting this warning:
This construct is deprecated. BSON reading and writing has been moved to its own package. See https://www.nuget.org/packages/Newtonsoft.Json.Bson for more details.

I installed Newtonsoft.Json.Bson package but can't find the way to get rid on the warning. Any example would be appreciated. Thanks.

@JonHanna
Copy link
Contributor

JonHanna commented Apr 7, 2017

You need to use the new types equivalent to the old. E.g. instead of using the old BsonWriter use the new BsonDataWriter. (Perhaps the warnings should suggest the type in each case).

@draganjovanovic1
Copy link
Author

Thanks, it worked. I think that changing warnings would be good idea to avoid these kind of issues as I had :)

@alvarezdaniel
Copy link

Thanks!

@p10tyr
Copy link

p10tyr commented Jan 13, 2020

Please update the documentation
https://www.newtonsoft.com/json/help/html/SerializeToBson.htm

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

4 participants