Skip to content

Commit c356592

Browse files
authored
Run tests using .NET 6 (#115)
1 parent 3518f70 commit c356592

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

CoreDistributedCache/NHibernate.Caches.CoreDistributedCache.Tests/NHibernate.Caches.CoreDistributedCache.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.CoreDistributedCache</Product>
55
<Description>Unit tests of cache provider for NHibernate using .Net Core IDistributedCache (Microsoft.Extensions.Caching.Abstractions).</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<IsTestProject>true</IsTestProject>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1010
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1111
</PropertyGroup>
12-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
12+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1313
<OutputType>Exe</OutputType>
1414
<GenerateProgramFile>false</GenerateProgramFile>
1515
</PropertyGroup>
@@ -28,7 +28,7 @@
2828
<PackageReference Include="NSubstitute" Version="3.1.0" />
2929
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
3030
</ItemGroup>
31-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
31+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
3232
<PackageReference Include="NUnitLite" Version="3.9.0" />
3333
</ItemGroup>
3434
<ItemGroup>

CoreMemoryCache/NHibernate.Caches.CoreMemoryCache.Tests/NHibernate.Caches.CoreMemoryCache.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.CoreMemoryCache</Product>
55
<Description>Unit tests of cache provider for NHibernate using .Net Core MemoryCache (Microsoft.Extensions.Caching.Memory).</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<IsTestProject>true</IsTestProject>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1010
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1111
</PropertyGroup>
12-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
12+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1313
<OutputType>Exe</OutputType>
1414
<GenerateProgramFile>false</GenerateProgramFile>
1515
</PropertyGroup>
@@ -22,7 +22,7 @@
2222
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
2323
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
2424
</ItemGroup>
25-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
25+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
2626
<PackageReference Include="NUnitLite" Version="3.9.0" />
2727
</ItemGroup>
2828
</Project>

NHibernate.Caches.Common.Tests/NHibernate.Caches.Common.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.Common.Tests</Product>
55
<Description>Unit tests base for cache providers.</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<IsTestProject>true</IsTestProject>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1010
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1111
</PropertyGroup>
12-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
12+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1313
<OutputType>Exe</OutputType>
1414
<GenerateProgramFile>false</GenerateProgramFile>
1515
</PropertyGroup>
@@ -20,7 +20,7 @@
2020
<PackageReference Include="NHibernate" Version="5.2.0" />
2121
<PackageReference Include="NSubstitute" Version="3.1.0" />
2222
</ItemGroup>
23-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
23+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
2424
<PackageReference Include="NUnitLite" Version="3.9.0" />
2525
</ItemGroup>
2626
<ItemGroup>

RtMemoryCache/NHibernate.Caches.RtMemoryCache.Tests/NHibernate.Caches.RtMemoryCache.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.RtMemoryCache</Product>
55
<Description>Unit tests of cache provider for NHibernate using MemoryCache.</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<IsTestProject>true</IsTestProject>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1010
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1111
</PropertyGroup>
12-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
12+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1313
<OutputType>Exe</OutputType>
1414
<GenerateProgramFile>false</GenerateProgramFile>
1515
</PropertyGroup>
@@ -26,7 +26,7 @@
2626
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
2727
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
2828
</ItemGroup>
29-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
29+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
3030
<PackageReference Include="NUnitLite" Version="3.9.0" />
3131
</ItemGroup>
32-
</Project>
32+
</Project>

StackExchangeRedis/NHibernate.Caches.StackExchangeRedis.Tests/NHibernate.Caches.StackExchangeRedis.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.StackExchangeRedis.Tests</Product>
55
<Description>Unit tests of cache provider NHibernate using StackExchange.Redis.</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<ImplicitlyExpandNETStandardFacades>false</ImplicitlyExpandNETStandardFacades>
88
<IsTestProject>true</IsTestProject>
99
</PropertyGroup>
1010
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1111
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1212
</PropertyGroup>
13-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
13+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1414
<OutputType>Exe</OutputType>
1515
<GenerateProgramFile>false</GenerateProgramFile>
1616
</PropertyGroup>
@@ -24,7 +24,7 @@
2424
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
2525
<PackageReference Include="NSubstitute" Version="3.1.0" />
2626
</ItemGroup>
27-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
27+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
2828
<PackageReference Include="NUnitLite" Version="3.9.0" />
2929
<PackageReference Include="System.Runtime.Caching" Version="4.5.0" />
3030
</ItemGroup>

Util/NHibernate.Caches.Util.JsonSerializer.Tests/NHibernate.Caches.Util.JsonSerializer.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<Product>NHibernate.Caches.Util.JsonSerializer.Tests</Product>
55
<Description>Unit tests for json serializer.</Description>
6-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks>net461;net6.0</TargetFrameworks>
77
<IsTestProject>true</IsTestProject>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
1010
<DefineConstants>NETFX;$(DefineConstants)</DefineConstants>
1111
</PropertyGroup>
12-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
12+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1313
<OutputType>Exe</OutputType>
1414
<GenerateProgramFile>false</GenerateProgramFile>
1515
</PropertyGroup>
@@ -21,7 +21,7 @@
2121
<PackageReference Include="log4net" Version="2.0.10" />
2222
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
2323
</ItemGroup>
24-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
24+
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
2525
<PackageReference Include="NUnitLite" Version="3.9.0" />
2626
</ItemGroup>
2727
</Project>

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ configuration:
66
environment:
77
global:
88
netTargetFx: net461
9-
coreTargetFx: netcoreapp2.0
9+
coreTargetFx: net6.0
1010
matrix:
1111
- tests: net
1212
- tests: core

buildcommon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<property name="key.file" value="../NHibernate.Caches.snk" />
99

1010
<property name="net.target-fx" value="net461" />
11-
<property name="net.core-fx" value="netcoreapp2.0" />
11+
<property name="net.core-fx" value="net6.0" />
1212

1313
<property name="nant-version.current" value="${assemblyname::get-version(assembly::get-name(nant::get-assembly()))}" />
1414
<property name="nant-version.required" value="0.85.2478.0" />

0 commit comments

Comments
 (0)