Microsoft.AspNetCore.Connections.Abstractions 9.0 needs additional TFM net8.0 #59095
Closed
1 task done
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Is there an existing issue for this?
Describe the bug
Microsoft.AspNetCore.Connections.Abstractions
provides an interfaceITlsHandshakeFeature
, which gained additional members (e.g.NegotiatedCipherSuite
) innet8.0
.The problem here is, that this package
Microsoft.AspNetCore.Connections.Abstractions
targetsnetstandard2.0
,netstandard2.1
, andnet462
in addition tonet9.0
. Now assume that you addMicrosoft.AspNetCore.Connections.Abstractions
9.0 to anet8.0
project. This causes thenetstandard2.1
assembly to be used in ASP.NET Core 8, which now has missing members forITlsHandshakeFeature
, which results inMissingMethodException
s.You can find the original issue here: dotnet/orleans#9238
Expected Behavior
Adding
Microsoft.AspNetCore.Connections.Abstractions
9.0 to .NET 8.0 should not result inMissingMethodException
s.Steps To Reproduce
Microsoft.AspNetCore.Connections.Abstractions
9.0Now watch it crash with the following exception:
Even if you cannot see the exception, you can always inspect the
Microsoft.AspNetCore.Connections.Abstractions.dll
from thepublish
directory and see thatITlsHandshakeFeature
misses theNegotiatedCipherSuite
property, which is only available on .NET Core builds, but a .NET 8.0 target uses the .NET Standard 2.1 build, which contains the incomplete interface.Exceptions (if any)
.NET Version
9.0.100
Anything else?
net8.0
Microsoft.AspNetCore.Connections.Abstractions
9.0The text was updated successfully, but these errors were encountered: