-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-2592: Adding netstandard2.0 support to libraries #377
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
Conversation
|
This looks good! Thanks James! |
|
Thoughts? Comments? Concerns? |
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ship it! :)
|
Thanks for your PR! The .NET Driver team is considering adding support for .NET Standard 2.0 soon |
Is there an time line for that? Currently when publishing a .net core 3.0 app with MongoDB driver, error NU1605 will block the process. It can be ignored but that requires modifing every project file that uses the driver, which is quite tedious for large solutions. |
|
Any chance to move on to the better netstandard? |
|
@adamhathcock I'd fix the merge conflicts but I don't know if this PR is still under review for merge 🤷♂ |
|
Looking forward to it. But as it shows, a conflict in |
|
@AlseinX same comment, don't know if this PR is under review. I didn't get any feedback so I don't want to go through the work of fixing merge conflicts if there's no point |
|
This PR is really helpful and the removal of |
|
I'm sorry we haven't gotten to this yet. We are definitely planning to target .NET Standard 2.0 as soon as possible. The main issues that have stopped us from doing it sooner are:
We are researching whether any of our users would be impacted by removing support for .NET Standard 1.5. Note that once we target .NET Standard 2.0 we also need to review the #if's in the entire code base to see what features can now be re-enabled once we target .NET Standard 2.0 (and are no longer constrained by the more limited APIs available in .NET Standard 1.5). We plan to do that as a separate effort. Can someone elaborate on why removing use of Emit is helpful? Where is Emit not supported? Thanks! |
|
Hey @rstam I can confirm that Emit is not supported on Xamarin iOS Devices or Devices that do not allow dynamic generation of code. Microsoft has released a hotfix for this by enabling an interpreter to run on iOS. But this affects performance and causes other issues. #377 |
|
@Digi59404 thanks for that information. That's helpful. |
|
As for the issues:
|
|
I've fixed merge conflicts here. |
|
@rstam @vincentkam I've fixed the test failures by adding the |
06457b3 to
6bbd71c
Compare
|
I rebased and squashed this PR because it had a bunch of useless old commits |
|
Somehow, there’s already conflicts. Sorry @jbogard I still think out of support versions of net standard should be dropped. |
…nditional compilations for netstandard2.0 CSHARP-2592: Adds support for netstandard2.0
6bbd71c to
e5a0198
Compare
|
Merged from upstream, which incorporated CSHARP-2394 |
|
@adamhathcock not anymore ;) |
|
Thanks @jbogard for your participation, the changes are already in master. They will be available to consume in the next release |

This also removes the
System.Reflection.Emit.Lightweightdependency in favor of expression tree compilation.I left the test projects alone since they target
netcoreapp2.1. In order to test againstnetstandard1.5you'd have to addnetcoreapp1.xtarget....which is deprecated.