Skip to content

Commit

Permalink
Remove .NET Core 2.2 as it reached end of life, closes #227
Browse files Browse the repository at this point in the history
  • Loading branch information
cd21h committed Jan 10, 2021
1 parent d607e81 commit 0aff355
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<PropertyGroup Label="Custom targeTs">
<!-- target frameworks for unit-tests and applications -->
<AppTargetFrameworks>netcoreapp2.1;netcoreapp2.2;netcoreapp3.1;net5</AppTargetFrameworks>
<AppTargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5</AppTargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.1.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'">
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.5" />
</ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions Samples/TardisBank/Src/Suteki.TardisBank.WebApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Suteki.TardisBank.WebApi
using SharpArch.NHibernate.Impl;
using SharpArch.Web.AspNetCore.Transaction;

#if NETCOREAPP2_1 || NETCOREAPP2_2
#if NETCOREAPP2_1
using System.Globalization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
Expand Down Expand Up @@ -63,8 +63,6 @@ public void ConfigureServices(IServiceCollection services)
.AddJsonFormatters()
#if NETCOREAPP2_1
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
#elif NETCOREAPP2_2
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
#endif
;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'">
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.9" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.9" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
</ItemGroup>

Expand Down
5 changes: 1 addition & 4 deletions Samples/TransactionAttribute/App/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.Extensions.DependencyInjection;
using SharpArch.Web.AspNetCore.Transaction;
using Stubs;
#if NETCOREAPP2_1 || NETCOREAPP2_2
#if NETCOREAPP2_1
using System.Globalization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
Expand Down Expand Up @@ -37,7 +37,6 @@ public void ConfigureServices(IServiceCollection services)
options.Filters.Add(new TransactionAttribute(isolationLevel: IsolationLevel.Chaos));
})
;

#else
// Add framework services.
services.AddMvcCore(options =>
Expand All @@ -56,8 +55,6 @@ public void ConfigureServices(IServiceCollection services)
.AddJsonFormatters()
#if NETCOREAPP2_1
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
#elif NETCOREAPP2_2
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
#endif
;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
<PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'">
<PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Src\SharpArch.Web.AspNetCore\SharpArch.Web.AspNetCore.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.5" />
</ItemGroup>
Expand Down
7 changes: 0 additions & 7 deletions Src/SharpArch.Web.AspNetCore/SharpArch.Web.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
</ItemGroup>

<ItemGroup Label="Package References (ASP.NET Core 2.2)" Condition=" '$(TargetFramework)' == 'netcoreapp2.2' ">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.0" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
</ItemGroup>


<ItemGroup Label="Package References (ASP.NET Core 3.1)" Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
Expand Down

0 comments on commit 0aff355

Please sign in to comment.