Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit d8c0bd8

Browse files
Merge branch 'rel/2.0.0-preview2' into dev
2 parents 0626bb1 + 5127a74 commit d8c0bd8

File tree

29 files changed

+66
-115
lines changed

29 files changed

+66
-115
lines changed

build/common.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<PackageReference Include="Internal.AspNetCore.Sdk" Version="$(InternalAspNetCoreSdkVersion)" PrivateAssets="All" />
1717
</ItemGroup>
1818

19-
<ItemGroup Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework' AND '$(OutputType)'=='library'">
19+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework'">
2020
<PackageReference Include="NETStandard.Library" Version="$(BundledNETStandardPackageVersion)" />
21+
<PackageReference Include="NETStandard.Library.NETFramework" Version="$(NETStandardLibraryNETFrameworkVersion)" />
2122
</ItemGroup>
2223
</Project>

build/dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<PropertyGroup>
33
<AspNetCoreVersion>2.0.0-*</AspNetCoreVersion>
44
<AutoMapperVersion>5.0.2</AutoMapperVersion>
5-
<CoreFxVersion>4.3.0</CoreFxVersion>
65
<InternalAspNetCoreSdkVersion>2.1.0-*</InternalAspNetCoreSdkVersion>
76
<JsonNetVersion>10.0.1</JsonNetVersion>
87
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
8+
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
99
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
1010
<ThreadingDataflowVersion>4.7.0</ThreadingDataflowVersion>
1111
</PropertyGroup>

build/repo.targets

Lines changed: 0 additions & 12 deletions
This file was deleted.

samples/misc/LatencyTest/LatencyTest.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\..\build\dependencies.props" />
3+
<Import Project="..\..\..\build\common.props" />
44

55
<PropertyGroup>
6-
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
77
<IsPackable>false</IsPackable>
88
<OutputType>exe</OutputType>
99
</PropertyGroup>

samples/misc/NodeServicesExamples/NodeServicesExamples.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<Import Project="..\..\..\build\dependencies.props" />
3+
<Import Project="..\..\..\build\common.props" />
44

55
<PropertyGroup>
6-
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
77
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>

samples/misc/Webpack/ActionResults/PrerenderResult.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ public override async Task ExecuteResultAsync(ActionContext context)
2727
{
2828
var nodeServices = context.HttpContext.RequestServices.GetRequiredService<INodeServices>();
2929
var hostEnv = context.HttpContext.RequestServices.GetRequiredService<IHostingEnvironment>();
30+
var applicationLifetime = context.HttpContext.RequestServices.GetRequiredService<IApplicationLifetime>();
3031
var applicationBasePath = hostEnv.ContentRootPath;
3132
var request = context.HttpContext.Request;
3233
var response = context.HttpContext.Response;
3334

3435
var prerenderedHtml = await Prerenderer.RenderToString(
3536
applicationBasePath,
3637
nodeServices,
38+
applicationLifetime.ApplicationStopping,
3739
_moduleExport,
3840
request.GetEncodedUrl(),
3941
request.Path + request.QueryString.Value,

samples/misc/Webpack/Webpack.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<Import Project="..\..\..\build\dependencies.props" />
3+
<Import Project="..\..\..\build\common.props" />
44

55
<PropertyGroup>
6-
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
77
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>

src/Microsoft.AspNetCore.NodeServices.Sockets/Microsoft.AspNetCore.NodeServices.Sockets.csproj

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<Description>Socket-based RPC for Microsoft.AspNetCore.NodeServices.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<PackageTags>aspnetcore;aspnetcoremvc;nodeservices</PackageTags>
99
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
1010
</PropertyGroup>
@@ -15,14 +15,6 @@
1515

1616
<ItemGroup>
1717
<ProjectReference Include="..\Microsoft.AspNetCore.NodeServices\Microsoft.AspNetCore.NodeServices.csproj" />
18-
</ItemGroup>
19-
20-
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
21-
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftDataflowVersion)" />
22-
</ItemGroup>
23-
24-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
25-
<PackageReference Include="System.IO.Pipes" Version="$(CoreFxVersion)" />
2618
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="$(ThreadingDataflowVersion)" />
2719
</ItemGroup>
2820

src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/NamedPipeConnection.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ public override async Task<Stream> Open(string address)
1818
PipeDirection.InOut,
1919
PipeOptions.Asynchronous);
2020

21-
#if NET451
22-
_namedPipeClientStream.Connect();
23-
#else
2421
await _namedPipeClientStream.ConnectAsync().ConfigureAwait(false);
25-
#endif
2622

2723
return _namedPipeClientStream;
2824
}

src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/StreamConnection.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ internal abstract class StreamConnection : IDisposable
1111

1212
public static StreamConnection Create()
1313
{
14-
#if NET451
15-
return new NamedPipeConnection();
16-
#else
1714
var useNamedPipes = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(
1815
System.Runtime.InteropServices.OSPlatform.Windows);
1916
if (useNamedPipes)
@@ -24,7 +21,6 @@ public static StreamConnection Create()
2421
{
2522
return new UnixDomainSocketConnection();
2623
}
27-
#endif
2824
}
2925
}
3026
}

0 commit comments

Comments
 (0)