Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pkg/Microsoft.Private.PackageBaseline/packageIndex.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@
"4.1.0"
],
"AssemblyVersionInPackageVersion": {
"4.2.0.0": "4.3.0"
"4.2.0.0": "4.3.0",
"4.1.1.0": "4.3.0"
}
},
"runtime.unix.System.Private.Uri": {
Expand Down Expand Up @@ -697,7 +698,8 @@
"4.1.0"
],
"AssemblyVersionInPackageVersion": {
"4.2.0.0": "4.3.0"
"4.2.0.0": "4.3.0",
"4.1.1.0": "4.3.0"
}
},
"runtime.win.System.Runtime.Extensions": {
Expand Down Expand Up @@ -1446,7 +1448,8 @@
"4.1.0.0": "4.1.0",
"4.0.0.0": "4.0.0",
"4.0.1.0": "4.1.0",
"4.2.0.0": "4.3.0"
"4.2.0.0": "4.3.0",
"4.1.1.0": "4.3.0"
}
},
"System.Net.WebClient": {
Expand Down
20 changes: 10 additions & 10 deletions src/System.Net.Sockets/System.Net.Sockets.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{89BE5448-6E11-4ABC-87C6-988225002CB3}"
EndProject
Expand All @@ -24,57 +24,57 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Unix_Debug|Any CPU = Unix_Debug|Any CPU
Unix_Release|Any CPU = Unix_Release|Any CPU
Release|Any CPU = Release|Any CPU
Windows_Debug|Any CPU = Windows_Debug|Any CPU
Windows_Release|Any CPU = Windows_Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Release|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Unix_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Unix_Debug|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Unix_Release|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Unix_Release|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Release|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Windows_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Windows_Debug|Any CPU.Build.0 = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Windows_Release|Any CPU.ActiveCfg = Debug|Any CPU
{9E212427-18B3-4EF4-966C-ED18AAC08422}.Windows_Release|Any CPU.Build.0 = Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.ActiveCfg = Windows_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.Build.0 = Windows_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.Build.0 = Windows_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Unix_Debug|Any CPU.ActiveCfg = Unix_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Unix_Debug|Any CPU.Build.0 = Unix_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Unix_Release|Any CPU.ActiveCfg = Unix_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Unix_Release|Any CPU.Build.0 = Unix_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.Build.0 = Windows_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Windows_Debug|Any CPU.ActiveCfg = Windows_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Windows_Debug|Any CPU.Build.0 = Windows_Debug|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Windows_Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Windows_Release|Any CPU.Build.0 = Windows_Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.Build.0 = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Unix_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Unix_Debug|Any CPU.Build.0 = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Unix_Release|Any CPU.ActiveCfg = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Unix_Release|Any CPU.Build.0 = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.Build.0 = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Windows_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Windows_Debug|Any CPU.Build.0 = Debug|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Windows_Release|Any CPU.ActiveCfg = Release|Any CPU
{8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Windows_Release|Any CPU.Build.0 = Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Debug|Any CPU.ActiveCfg = Windows_Debug|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Debug|Any CPU.Build.0 = Windows_Debug|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Release|Any CPU.Build.0 = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Unix_Debug|Any CPU.ActiveCfg = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Unix_Debug|Any CPU.Build.0 = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Unix_Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Unix_Release|Any CPU.Build.0 = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Release|Any CPU.Build.0 = Windows_Release|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Windows_Debug|Any CPU.ActiveCfg = Windows_Debug|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Windows_Debug|Any CPU.Build.0 = Windows_Debug|Any CPU
{BB5C85AD-C51A-4903-80E9-6F6E1AC1AD34}.Windows_Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.Sockets/pkg/System.Net.Sockets.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<ItemGroup>
<ProjectReference Include="..\ref\System.Net.Sockets.csproj">
<SupportedFramework>net46;netcore50;netcoreapp1.0;$(AllXamarinFrameworks)</SupportedFramework>
<SupportedFramework>net463;netcoreapp1.1;$(AllXamarinFrameworks)</SupportedFramework>
</ProjectReference>
<ProjectReference Include="..\src\System.Net.Sockets.csproj">
<TargetGroup>net46</TargetGroup>
<TargetGroup>net463</TargetGroup>
</ProjectReference>
<ProjectReference Include="win\System.Net.Sockets.pkgproj" />
<ProjectReference Include="unix\System.Net.Sockets.pkgproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.Sockets/ref/System.Net.Sockets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<OutputType>Library</OutputType>
<NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
<NuGetTargetMoniker>.NETStandard,Version=v1.7</NuGetTargetMoniker>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Net.Sockets.cs" />
Expand Down
14 changes: 5 additions & 9 deletions src/System.Net.Sockets/ref/project.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"dependencies": {
"System.IO": "4.0.0",
"System.IO": "4.1.0",
"System.IO.FileSystem.Primitives": "4.0.1",
"System.Net.Primitives": "4.0.10",
"System.Runtime": "4.0.0",
"System.Threading.Tasks": "4.0.0"
"System.Net.Primitives": "4.0.11",
"System.Runtime": "4.1.0",
"System.Threading.Tasks": "4.0.11"
},
"frameworks": {
"netstandard1.3": {
"imports": [
"dotnet5.4"
]
}
"netstandard1.7": { }
}
}
2 changes: 1 addition & 1 deletion src/System.Net.Sockets/src/System.Net.Sockets.builds
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OSGroup>Windows_NT</OSGroup>
</Project>
<Project Include="System.Net.Sockets.csproj">
<TargetGroup>net46</TargetGroup>
<TargetGroup>net463</TargetGroup>
</Project>
<Project Include="System.Net.Sockets.csproj">
<OSGroup>Windows_NT</OSGroup>
Expand Down
38 changes: 18 additions & 20 deletions src/System.Net.Sockets/src/System.Net.Sockets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,24 @@
<ProjectGuid>{43311AFB-D7C4-4E5A-B1DE-855407F90D1B}</ProjectGuid>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableWinRT Condition="'$(TargetGroup)' == 'netcore50'">true</EnableWinRT>
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'net46'">true</IsPartialFacadeAssembly>
<NuGetTargetMoniker Condition="'$(TargetGroup)' == ''">.NETStandard,Version=v1.3</NuGetTargetMoniker>
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'net463'">true</IsPartialFacadeAssembly>
<NuGetTargetMoniker Condition="'$(TargetGroup)' == ''">.NETStandard,Version=v1.7</NuGetTargetMoniker>
<AssemblyVersion Condition="'$(TargetGroup)' == 'netcore50'">4.1.1.0</AssemblyVersion>
<DefineConstants Condition="'$(TargetGroup)' == 'netcore50'">$(DefineConstants);netcore50</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetsWindows)' == 'true' AND '$(TargetGroup)' == ''">
<ProjectJson>win/project.json</ProjectJson>
<ProjectLockJson>win/project.lock.json</ProjectLockJson>
</PropertyGroup>
<PropertyGroup Condition="'$(EnableWinRT)' != 'true'">
<DefineConstants>$(DefineConstants);FEATURE_CORECLR</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(EnableWinRT)' == 'true'">
<DefineConstants>$(DefineConstants);NETNATIVE</DefineConstants>
</PropertyGroup>
<!-- Help VS understand available configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Unix_Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Unix_Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Windows_Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Windows_Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Windows_netcore50_Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Windows_netcore50_Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net46_Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net46_Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net463_Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net463_Release|AnyCPU'" />
<PropertyGroup>
<!-- SYSTEM_NET_SOCKETS_DLL is required to allow source-level code sharing for types defined within the
System.Net.Internals namespace. -->
Expand All @@ -43,7 +39,7 @@
<Compile Include="System\Net\Sockets\SocketReceiveMessageFromResult.cs" />
<Compile Include="System\Net\Sockets\SocketTaskExtensions.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' != 'net46'">
<ItemGroup Condition="'$(TargetGroup)' != 'net463'">
<!-- CoreCLR (All Operating Systems), .NET Native -->
<Compile Include="System\Net\DnsAPMExtensions.cs" />
<Compile Include="System\Net\SocketPerfCounters.cs" />
Expand Down Expand Up @@ -159,17 +155,11 @@
<Link>Common\System\Net\Sockets\SocketType.cs</Link>
</Compile>
<!-- Common -->
<Compile Include="$(CommonPath)\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs">
<Link>Common\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs">
<Link>Common\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\System\Threading\Tasks\TaskToApm.cs">
<Link>Common\System\Threading\Tasks\TaskToApm.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition=" '$(TargetsWindows)' == 'true' AND '$(TargetGroup)' != 'net46' ">
<ItemGroup Condition=" '$(TargetsWindows)' == 'true' AND '$(TargetGroup)' != 'net463' ">
<!-- Windows: CoreCLR and .NET Native -->
<Compile Include="System\Net\Sockets\AcceptOverlappedAsyncResult.Windows.cs" />
<Compile Include="System\Net\Sockets\BaseOverlappedAsyncResult.Windows.cs" />
Expand Down Expand Up @@ -287,7 +277,7 @@
</Compile>
</ItemGroup>
<!-- Windows : Win32 only -->
<ItemGroup Condition="'$(TargetsWindows)' == 'true' AND '$(EnableWinRT)' != 'true' AND '$(TargetGroup)' != 'net46'">
<ItemGroup Condition="'$(TargetsWindows)' == 'true' AND '$(EnableWinRT)' != 'true' AND '$(TargetGroup)' != 'net463'">
<Compile Include="$(CommonPath)\Interop\Windows\Winsock\SafeOverlappedFree.cs">
<Link>Interop\Windows\Winsock\SafeOverlappedFree.cs</Link>
</Compile>
Expand Down Expand Up @@ -441,7 +431,15 @@
<Link>Interop\Unix\System.Native\Interop.Write.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'net46'">
<ItemGroup Condition="'$(TargetGroup)' == 'netcore50'">
<Compile Include="$(CommonPath)\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs">
<Link>Common\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs</Link>
</Compile>
Copy link
Copy Markdown
Contributor

@davidsh davidsh Oct 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we even this Common code anymore? I thought SafeHandleZeroOrMinusOneIsInvalid and friends was being added back to the public API surface (i.e. part of .NET Standard 2.0). So, shouldn't these references just be coming from Microsoft.Win32.SafeHandles contract via a project.json reference?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have already been added back, but netcore50 doesn't support netstandard1.7(aka 2.0), so the common source is still needed for that build.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will netcore50 support .NET Standard 2.0? Or perhaps the real question is when will the "UWP" version of this support these APIs? Is there going to be a 'netcore51' for example? I did see uap10.1 vs. uap10.0 so I was wondering if there was a net platform definition for a revised version for UWP, similar to what is happening for 'netcoreapp10' vs. 'netcoreapp11'.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

netcore50 will never support .NET Standard 2.0. We do not plan to version the netcore tfm for this as netcore50 has special meaning to various systems and so it is essentially a dead end. However UWP with uap10.1 tfm is currently the target to support .NET Standard 2.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, are we changing our source code where we use "if netcore50". And we use that term in our folder names and partial class names. The documentation needs to be updated if we don't use "netcore50" TFM anymore. We have separate implementations for some of the networking libraries, so need good guidelines to keep this organized and building correctly.

<Compile Include="$(CommonPath)\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs">
<Link>Common\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'net463'">
<!-- .NET Framework -->
<TargetingPackReference Include="mscorlib" />
<TargetingPackReference Include="System" />
Expand Down
12 changes: 12 additions & 0 deletions src/System.Net.Sockets/src/System/Net/Sockets/NetworkStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ internal bool Connected
// Returns:
//
// An IASyncResult, representing the read.
#if !netcore50
override
#endif
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing this special if block for !netcore50?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we build for netcore50, we're building against the older contract where these don't exist on Stream, so there's nothing to override.

Copy link
Copy Markdown
Member

@weshaggard weshaggard Oct 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing this #ifdef'ing can we just remove the netcore50 build now? If you remove the build configuration we will essentially pick-up and reship the version for the last stable package.

We we do go that route and remove the netcore50 configuration from the live build then we will have the accept that we aren't going to be making in bug fixes in that configuration any longer and if we do need to fix something for it we will have to do it from the release/servicing branch or add back the configuration at that time.

For that reason I will leave it up to you guys to decide whether or not to remove the live build or not.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think that's wise given it'll just need to come back for UAP10.1?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scratch that, I see what you're saying. This won't need to come back for UAP10.1 since UAP10.1 will have this version of stream. I had recommended that @ericeil keep the netcore50 config around and building so that it would be eaiser to add the UAP10.1 config when that work is done, however here it's making the current work harder. Another option would be to bring up a UAP10.1 config now, but I suspect that'd require some more hacks.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we would drop 'netcore50' suport. I don't really care what moniker we call it. But we need to have UWP working at all times. Will I still be able to build a UWP app and use System.Net.Sockets (or any other networking library). And when/how will UWP be updated in order to use the newly added contract API surface. I've heard it is when "uap10.1" gets working. But I don't understand exactly when that is and how it works.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've logged issue #12331 to track this potential extra work. I don't think we should hold this PR for that decision.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidsh removing the live netcore50 build doesn't break UWP. It just implies that we are going to pull the netcore50 version of the library from the last stable shipped package and reship that in the current package. It just allows us to eliminate a bunch of the extra live build configurations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weshaggard Ok. So, then when can be start to have UWP working with this expanded API set? Is this "uap10.1"? If so, does that live build work? Or is there work to do in this library to make that happen. I need to get this working in UWP for the expanded (a.k.a netstandard17.....a.k.a NET Standard 2.0).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes most of the .NET Standard 2.0 work is targeting "uap10.1", however that ties to a new tool chain that is also under development in TFS.

For some things we could add them to the netcore50 version of the library assuming it isn't part of the SharedLibrary and doesn't require any new dependent APIs that are in contracts that are part of the SharedLibrary. My expectation is that most of the .NET Standard 2.0 will require newer versions of things like System.Runtime which means we won't really be able to support them in netcore50 and we will need to use uap10.1 instead.

public IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, Object state)
{
#if DEBUG
Expand Down Expand Up @@ -727,6 +730,9 @@ internal virtual IAsyncResult UnsafeBeginRead(byte[] buffer, int offset, int siz
// Returns:
//
// The number of bytes read. May throw an exception.
#if !netcore50
override
#endif
public int EndRead(IAsyncResult asyncResult)
{
#if DEBUG
Expand Down Expand Up @@ -785,6 +791,9 @@ public int EndRead(IAsyncResult asyncResult)
// Returns:
//
// An IASyncResult, representing the write.
#if !netcore50
override
#endif
public IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, Object state)
{
#if DEBUG
Expand Down Expand Up @@ -908,6 +917,9 @@ internal virtual IAsyncResult UnsafeBeginWrite(byte[] buffer, int offset, int si
// This method is called when an async write is completed. All we
// do is call through to the core socket EndSend functionality.
// Returns: The number of bytes read. May throw an exception.
#if !netcore50
override
#endif
public void EndWrite(IAsyncResult asyncResult)
{
#if DEBUG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@
// See the LICENSE file in the project root for more information.

using System;
#if !netcore50
using System.Runtime.Serialization;
#endif

namespace System.Net.Sockets
{
//[Serializable]
#if !netcore50
[Serializable]
#endif
public struct SocketInformation
{
private byte[] _protocolInformation;
private SocketInformationOptions _options;

//[OptionalField]
#if !netcore50
[OptionalField]
#endif
private EndPoint _remoteEndPoint;

public byte[] ProtocolInformation
Expand Down
46 changes: 21 additions & 25 deletions src/System.Net.Sockets/src/project.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
{
"frameworks": {
"netstandard1.3": {
"netstandard1.7": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"System.Collections": "4.0.0",
"System.Diagnostics.Debug": "4.0.10",
"System.Diagnostics.Tracing": "4.0.20",
"System.Globalization": "4.0.0",
"System.IO": "4.0.10",
"System.IO.FileSystem": "4.0.0",
"System.IO.FileSystem.Primitives": "4.0.0",
"System.Net.NameResolution": "4.0.0",
"System.Net.Primitives": "4.0.10",
"System.Resources.ResourceManager": "4.0.0",
"System.Runtime": "4.0.20",
"System.Runtime.Extensions": "4.0.10",
"System.Runtime.Handles": "4.0.0",
"System.Runtime.InteropServices": "4.0.20",
"System.Security.Principal.Windows": "4.0.0",
"System.Threading": "4.0.10",
"System.Threading.Tasks": "4.0.10",
"System.Threading.ThreadPool": "4.0.10"
},
"imports": [
"dotnet5.4"
]
"System.Collections": "4.3.0-beta-24601-02",
"System.Diagnostics.Debug": "4.3.0-beta-24601-02",
"System.Diagnostics.Tracing": "4.3.0-beta-24601-02",
"System.Globalization": "4.3.0-beta-24601-02",
"System.IO": "4.3.0-beta-24601-02",
"System.IO.FileSystem": "4.3.0-beta-24601-02",
"System.IO.FileSystem.Primitives": "4.3.0-beta-24601-02",
"System.Net.NameResolution": "4.3.0-beta-24601-02",
"System.Net.Primitives": "4.3.0-beta-24601-02",
"System.Resources.ResourceManager": "4.3.0-beta-24601-02",
"System.Runtime": "4.3.0-beta-24601-02",
"System.Runtime.Extensions": "4.3.0-beta-24601-02",
"System.Runtime.Handles": "4.3.0-beta-24601-02",
"System.Runtime.InteropServices": "4.3.0-beta-24601-02",
"System.Security.Principal.Windows": "4.3.0-beta-24601-02",
"System.Threading": "4.3.0-beta-24601-02",
"System.Threading.Tasks": "4.3.0-beta-24601-02",
"System.Threading.ThreadPool": "4.3.0-beta-24601-02"
}
},
"net46": {
"net463": {
"dependencies": {
"Microsoft.TargetingPack.NETFramework.v4.6": "1.0.1"
}
Expand Down
Loading