[CSHARP-3187] .Net Core 3.1 Upgrade Created: 17/Aug/20  Updated: 15/Oct/21  Resolved: 15/Oct/21

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Adam Friedland Assignee: James Kovacs
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CSHARP-2750 Upgrade C# language version to 9 Closed
Related
related to CSHARP-3861 Add support for System.Linq.IAsyncEnu... Backlog
related to CSHARP-3458 Extend IAsyncCursor to support IAsync... Backlog
related to CSHARP-2750 Upgrade C# language version to 9 Closed

 Description   

Specifically, bump the language version for the driver as it currently only supports 7.3. This would enable support for new features like asynchronous streams with IAsyncEnumerable.



 Comments   
Comment by James Kovacs [ 15/Oct/21 ]

Hi, zev19@hotmail.com,

CSHARP-2750 upgraded the driver's C# version to C# 9. We have been using C# 8/9 language constructs in the driver code since v2.12.0, but only use compiler-supported constructs that do not require additional framework support. The minimum TFM (net472 and netstandard2.0 / 2.1) are more relevant to developers using the driver.

If you are looking for C# 8/9 features that do require framework support, such as IAsyncEnumerable, please file a separate ticket. If you are interested in IAsyncEnumerable support specifically, please follow and/or comment on CSHARP-3458 and CSHARP-3861. Support for C# 9 records is CSHARP-3358. You can search the CSHARP JIRA project for other C# 8/9 features that you'd like support for and file a new ticket if you don't find it.

I've closed this ticket as a duplicate of CSHARP-2750, but please comment if I missed anything.

Sincerely,
James

Comment by Adam Friedland [ 17/Aug/20 ]

Apologies. I was unable to add a description when I created this issue. What I was trying to imply was bumping up the language version for the csharp driver as it currently only supports 7.3. This would enable support for new features like asynchronous streams with IAsyncEnumerable. 

 

I would like to contribute to the project by adding these to various extension classes.

Comment by Esha Bhargava [ 17/Aug/20 ]

zev19@hotmail.com Can you be more specific about what you are looking for? We currently target .NET standard 2.0 which should work with .NET Core 3.1.

Generated at Wed Feb 07 21:44:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.