-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Upgrade SIOP dependency #68
base: main
Are you sure you want to change the base?
Conversation
- Update all nuget packages to latest version - Remove net5.0 TFM in favor of net6.0 - Remove net461 in favor of net462
@jasper-d What is the intent overall here? I'm asking because this breaks a great deal of projects, both those depending on earlier TFMs and especially anyone dealing with binding redirects. Most libraries can rely on the minimum required version for the APIs they need, thereby offering the most flexibility and surface area for consumers. If we upgrade dependencies to require later versions, that causes a lot of real practical headaches. Fixes are good, but limiting where this can be used and making upgrades painful is less so...and this is used by some rather large downstream package volume, so it'll cause quite a few of those headaches. |
@NickCraver Primarily I would like to use Updating TFMs was meant as housekeeping, but shouldn't be required. I can revert those if you wish. Same for the auxiliary nuget packages. |
@jasper-d Follow-up then: where do you want to use |
I tried that, but when referencing this library and SIOP 6.0.3 explicitly from a .NET 6 application I still get a NotSupportedException when calling UnflushedBytes. I think But delegating won't work (or at least I wouldn't know how), because the members simply don't exist when targeting SIOP < 6. EDIT:
From my client code that uses Pipelines.Sockets.Unofficial. |
@jasper-d Gotcha - so that sounds like an argument for adding (and only adding) a net6.0 build which has a later dependency and lights up those new members, that's the approach I'd take here. Hopefully Marc has time to chime in there later, just saw this and was curious :) |
The addition of a net6 build and some new overrides for new features: no problem at all. Some of the other changes look suspect and would need further reading. My advice would be: limit the PR to exactly what you need for this feature - leave out the TFM cull etc. |
Two things caught my eye in particular (in a cursory read):
|
src/Pipelines.Sockets.Unofficial/Pipelines.Sockets.Unofficial.csproj
Outdated
Show resolved
Hide resolved
I've reverted all non-necessary changes, added .net6 as a new target. and upgraded SIOP only for .net6 as suggested. I'll file a separate PR with test fixes. |
CanGetUnflushedBytes
andUnflushedBytes
toWrappedWriter
for .net6.0/SIOP 6 only