Description
Hi dotnet/runtime team,
I found an issue in Ubuntu 16.04 when I was using the SslStream. At first, I tried to reproduce it in a sample application in Ubuntu, and at last, I am able to reproduce it in Windows. I don't know if there is a similar issue with other types!
The issue happens when you try to use an assembly with NetCore 2.1 in another project with NetCore 3.x (I have not checked the NetCore 5.0 preview).

- You will get the same exception if you use
nercoreapp3.0 in the 'Demo' project.
If you change the TargetFramework of the project ClassLibraryA to nercoreapp3.1 from netcoreapp2.1, or change TargetFramework of the project Demo to nercoreapp2.1 it will work without exception.

Description
Hi dotnet/runtime team,
I found an issue in
Ubuntu 16.04when I was using theSslStream. At first, I tried to reproduce it in a sample application in Ubuntu, and at last, I am able to reproduce it inWindows. I don't know if there is a similar issue with other types!The issue happens when you try to use an assembly with
NetCore 2.1in another project withNetCore 3.x(I have not checked theNetCore 5.0preview).You can find the sample application here.
Here are the sample outputs:
nercoreapp3.0in the 'Demo' project.If you change the
TargetFrameworkof the projectClassLibraryAtonercoreapp3.1fromnetcoreapp2.1, or changeTargetFrameworkof the projectDemotonercoreapp2.1it will work without exception.