Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 6e87b0f

Browse files
committed
Target netstandard2.0 TFM
1 parent 9313a02 commit 6e87b0f

File tree

20 files changed

+35
-21
lines changed

20 files changed

+35
-21
lines changed

build/common.props

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

19-
<ItemGroup Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework' AND '$(OutputType)'=='library'">
20-
<PackageReference Include="NETStandard.Library" Version="$(BundledNETStandardPackageVersion)" />
19+
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
20+
<PackageReference Include="NETStandard.Library.NETFramework" Version="$(NETStandardLibraryNETFrameworkVersion)" />
2121
</ItemGroup>
22-
2322
</Project>

build/dependencies.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<CoreFxVersion>4.3.0</CoreFxVersion>
55
<InternalAspNetCoreSdkVersion>2.1.0-*</InternalAspNetCoreSdkVersion>
66
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
7+
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
78
<TestSdkVersion>15.3.0-*</TestSdkVersion>
89
<XunitVersion>2.3.0-beta2-*</XunitVersion>
910
</PropertyGroup>

samples/SampleApp/SampleApp.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\build\dependencies.props" />
44

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

@@ -12,4 +12,8 @@
1212
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Http.Extensions\Microsoft.AspNetCore.Http.Extensions.csproj" />
1313
</ItemGroup>
1414

15+
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
16+
<PackageReference Include="NETStandard.Library.NETFramework" Version="$(NETStandardLibraryNETFrameworkVersion)" />
17+
</ItemGroup>
18+
1519
</Project>

src/Microsoft.AspNetCore.Authentication.Abstractions/Microsoft.AspNetCore.Authentication.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\build\common.props" />
33
<PropertyGroup>
44
<Description>ASP.NET Core common types used by the various authentication components.</Description>
5-
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<TargetFramework>netstandard2.0</TargetFramework>
66
<NoWarn>$(NoWarn);CS1591</NoWarn>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<PackageTags>aspnetcore;authentication;security</PackageTags>

src/Microsoft.AspNetCore.Authentication.Core/Microsoft.AspNetCore.Authentication.Core.csproj

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

55
<PropertyGroup>
66
<Description>ASP.NET Core common types used by the various authentication middleware components.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<NoWarn>$(NoWarn);CS1591</NoWarn>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<PackageTags>aspnetcore;authentication;security</PackageTags>

src/Microsoft.AspNetCore.Http.Abstractions/Microsoft.AspNetCore.Http.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Microsoft.AspNetCore.Builder.IApplicationBuilder
1010
Microsoft.AspNetCore.Http.HttpContext
1111
Microsoft.AspNetCore.Http.HttpRequest
1212
Microsoft.AspNetCore.Http.HttpResponse</Description>
13-
<TargetFramework>netcoreapp2.0</TargetFramework>
13+
<TargetFramework>netstandard2.0</TargetFramework>
1414
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1515
<PackageTags>aspnetcore</PackageTags>
1616
<NoWarn>$(NoWarn);CS1591</NoWarn>

src/Microsoft.AspNetCore.Http.Extensions/Microsoft.AspNetCore.Http.Extensions.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<Description>ASP.NET Core common extension methods for HTTP abstractions, HTTP headers, HTTP request/response, and session state.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<NoWarn>$(NoWarn);CS1591</NoWarn>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<PackageTags>aspnetcore</PackageTags>
@@ -17,6 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="$(AspNetCoreVersion)" />
20+
<PackageReference Include="System.Buffers" Version="$(CoreFxVersion)" />
2021
</ItemGroup>
2122

2223
</Project>

src/Microsoft.AspNetCore.Http.Features/Microsoft.AspNetCore.Http.Features.csproj

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

55
<PropertyGroup>
66
<Description>ASP.NET Core HTTP feature interface definitions.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<NoWarn>$(NoWarn);CS1591</NoWarn>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<PackageTags>aspnetcore</PackageTags>

src/Microsoft.AspNetCore.Http/Microsoft.AspNetCore.Http.csproj

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

55
<PropertyGroup>
66
<Description>ASP.NET Core default HTTP feature implementations.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<NoWarn>$(NoWarn);CS1591</NoWarn>
99
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>

src/Microsoft.AspNetCore.Owin/Microsoft.AspNetCore.Owin.csproj

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

55
<PropertyGroup>
66
<Description>ASP.NET Core component for running OWIN middleware in an ASP.NET Core application, and to run ASP.NET Core middleware in an OWIN application.</Description>
7-
<TargetFramework>netcoreapp2.0</TargetFramework>
7+
<TargetFramework>netstandard2.0</TargetFramework>
88
<NoWarn>$(NoWarn);CS1591</NoWarn>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<PackageTags>aspnetcore;owin</PackageTags>

0 commit comments

Comments
 (0)