-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support .NET Standard 2.0 #672
Conversation
Thanks for the PR! I appreciate the interest, and I've been wanting to have this conversation for a long time, obviously. The biggest question I have is what to do about Have you given any thought to the conflict that having two libraries with public |
Based on dotnet/runtime#104170, I'd like to wait until |
Thanks for the feedback! Shipping
I've updated the PR to implement the last option: hide API using |
dc4240b
to
656991e
Compare
I'd rather see the |
There are many overloads forwarding the implementation to the SuperLinq/Source/SuperLinq/FindIndex.cs Line 41 in 807dd88
|
The polyfills generated by PolySharp cannot be made public as there will be conflicts with the polyfills generated by others.
netstandard2.0 is tested through net48.
I've reconstruct Unshipped from netcoreapp3.1, removing Index/Range API. Sadly Rider doesn't support applying all Roslyn fixits, and |
The test projects must not target netstandard2.0 (is not something you can "run"), but net48. Suggestions on how I replace
This produces:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #672 +/- ##
==========================================
- Coverage 95.64% 95.62% -0.03%
==========================================
Files 247 247
Lines 8861 8864 +3
Branches 1616 1616
==========================================
+ Hits 8475 8476 +1
- Misses 194 196 +2
Partials 192 192 ☔ View full report in Codecov by Sentry. |
@Bouke It builds now at least! I'm still gonna work through what I think is best regarding |
Ok, take a look and tell me what you think. With |
Yeah, great! After removing
Distinguishing between |
Maybe you can set my expectations on when you might be creating a new release with these changes included? |
v6.2.0 is out now! 😄 |
I recently came across this library, and it has a few features over MoreLinq that I could use: mostly the async versions. However for my use-case I'd need support for
netstandard2.0
, which is currently not being targeted (#153).This PR is an attempt to add support for
netstandard2.0
. The build works, but there are a few test failures that I haven't looked into. I'm posting this PR mostly to get some feedback on the direction I've taken, and to see test the waters before I pour additional effort into this.I've opted to use the
NETCOREAPP
constant to cover bothnetstandard2.0
andnet48
. The test projects need to targetnet48
to test thenetstandard2.0
version of the library.One concern is that I've marked the polyfills as public, so that
Index
andRange
are usable. It seems to work, but might be something to evaluate. The alternative is removing all those API for thenetstandard2.0
target.