dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
21.03k stars 4.91k forks source link

.Close() on TcpClient & Socket missing for some platforms #956

Closed danielgerlag closed 7 years ago

danielgerlag commented 7 years ago

.Close() on TcpClient & Socket missing for some platforms

.Close() on TcpClient & Socket (System.Net.Sockets) is available in .net standard 2.0, only if compiling on a Windows machine... if I try compile on a Mac, these methods are missing. Also, have to explicitly reference System.Net.Sockets when building from the Mac.

General

.NET Standard 2.0 Windows 10 vs. MacOS

Petermarcu commented 7 years ago

@weshaggard, we use the same ref's in both cases don't we? Any idea what may be going on?

weshaggard commented 7 years ago

Yes we use the same ref everywhere when targeting netstandard20. @danielgerlag can you share more of how you are building?

Close should be available on both of those types when targeting netstandard20

Petermarcu commented 7 years ago

Issue moved to dotnet/standard #528 via ZenHub

Petermarcu commented 7 years ago

Lets get further details and track this in the dotnet/standard repo https://github.com/dotnet/core/issues/956